build: update Dockerfile

This commit is contained in:
vchikalkin 2023-05-05 11:49:49 +03:00
parent 9aaec2ac08
commit c244f166d3

View File

@ -5,6 +5,11 @@ EXPOSE 5000
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build
WORKDIR /src
COPY ["EvoCalculator.Core/EvoCalculator.Core.csproj", "EvoCalculator.Core/"]
COPY ./NuGet.Config /nuget.config
COPY ./evoleasing_25.crt /etc/ssl/certs
RUN update-ca-certificates
RUN dotnet restore "EvoCalculator.Core/EvoCalculator.Core.csproj"
COPY . .
WORKDIR "/src/EvoCalculator.Core"