Created
March 22, 2018 20:44
-
-
Save gussiciliano/67fa32841e849826887a6cfd170fe70f 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
FROM microsoft/dotnet:2.0-sdk | |
WORKDIR /app | |
EXPOSE 80 | |
# Copy csproj and restore as distinct layers | |
COPY *.csproj ./ | |
RUN dotnet restore | |
# Copy and build everything else | |
COPY . ./ | |
RUN dotnet publish -c Release -o out | |
CMD ASPNETCORE_URLS=http://*:$PORT dotnet out/NetCoreProject.dll |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment