Created
June 8, 2018 23:07
-
-
Save artisticcheese/35c9dd580521b0ad75ad906ffed066a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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