]> git.somenet.org - pub/jan/aic18.git/blob - PdfService/DOCKERFILE
Inital Project + DockerFile
[pub/jan/aic18.git] / PdfService / DOCKERFILE
1 FROM microsoft/dotnet:2.2.100-preview3-sdk AS build-env
2 WORKDIR /app
3
4 # Copy csproj and restore as distinct layers
5 COPY *.csproj ./
6 RUN dotnet restore
7
8 # Copy everything else and build
9 COPY . ./
10 RUN dotnet publish -c Release -o out
11
12 # Build runtime image
13 FROM microsoft/dotnet:2.2.0-preview3-aspnetcore-runtime-alpine
14 WORKDIR /app
15 COPY --from=build-env /app/out .
16 ENTRYPOINT ["dotnet", "PdfService.dll"]