Pin to Nano Server SAC 2016 images

This commit is contained in:
Elton Stoneman
2018-09-26 19:41:20 +01:00
parent 93ba2be2c1
commit ac496c8b7e
5 changed files with 72 additions and 8 deletions

View File

@ -1,4 +1,4 @@
FROM microsoft/dotnet:2.1-sdk as builder
FROM microsoft/dotnet:2.1-sdk-nanoserver-sac2016 as builder
WORKDIR /Result
COPY Result/Result.csproj .
@ -8,7 +8,7 @@ COPY /Result .
RUN dotnet publish -c Release -o /out Result.csproj
# app image
FROM microsoft/dotnet:2.1-aspnetcore-runtime
FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-sac2016
WORKDIR /app
ENTRYPOINT ["dotnet", "Result.dll"]