Skip to content

Instantly share code, notes, and snippets.

@fredrkl
Created November 2, 2018 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fredrkl/0a1f6ac74432c2aab000fdb5a9296a5e to your computer and use it in GitHub Desktop.
Save fredrkl/0a1f6ac74432c2aab000fdb5a9296a5e to your computer and use it in GitHub Desktop.
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