Skip to content

Instantly share code, notes, and snippets.

@artisticcheese
Created June 8, 2018 23:07
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 artisticcheese/35c9dd580521b0ad75ad906ffed066a1 to your computer and use it in GitHub Desktop.
Save artisticcheese/35c9dd580521b0ad75ad906ffed066a1 to your computer and use it in GitHub Desktop.
ARG buildimagetag="2.1-sdk"
ARG runtimeimagetag="2.1-aspnetcore-runtime"
FROM microsoft/dotnet:${buildimagetag} AS build
COPY /code /code
WORKDIR /code
RUN dotnet build -c Release -o output
FROM microsoft/dotnet:${runtimeimagetag}
COPY --from=build /code/output .
EXPOSE 80
ENTRYPOINT ["dotnet","code.dll"]
ENV ASPNETCORE_URLS http://*:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment