ELT.Gateway/Dockerfile
2023-05-05 12:00:05 +03:00

19 lines
395 B
Docker

# Stage 1
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
WORKDIR /build
COPY . .
COPY ./NuGet.Config /nuget.config
COPY ./evoleasing_25.crt /etc/ssl/certs
RUN update-ca-certificates
RUN dotnet restore
RUN dotnet publish -c Release -o /app
# Stage 2
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS final
WORKDIR /app
COPY --from=build /app .
EXPOSE 5000
ENTRYPOINT ["dotnet", "ELT.dll"]