Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FROM microsoft/dotnet:2.1-sdk AS build
LABEL maintainer="theMaintainer@theMaintainer.io"
WORKDIR /applicationfolder
COPY . .
RUN dotnet restore ./app/app.csproj \
&& dotnet publish ./app/app.csproj -o ./out -c Release
FROM microsoft/dotnet:2.1-aspnetcore-runtime
WORKDIR /app
COPY --from=build /applicationfolder/app/out .
ENTRYPOINT ["dotnet", "app.dll"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment