Switch branches/tags
Nothing to show
Find file Copy path
8051929 May 31, 2018
2 contributors

Users who have contributed to this file

@richlander @dasMulli
19 lines (14 sloc) 445 Bytes
FROM microsoft/dotnet:2.1-sdk AS build
# copy csproj and restore as distinct layers
COPY *.sln .
COPY aspnetapp/*.csproj ./aspnetapp/
RUN dotnet restore
# copy everything else and build app
COPY aspnetapp/. ./aspnetapp/
WORKDIR /app/aspnetapp
RUN dotnet publish -c Release -o out
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS runtime
COPY --from=build /app/aspnetapp/out ./
ENTRYPOINT ["dotnet", "aspnetapp.dll"]