Created
June 1, 2017 04:45
-
-
Save goindwalia/d50bd8d77c5aee83db5f315a7b7ca695 to your computer and use it in GitHub Desktop.
This file contains hidden or 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:1.1-sdk | |
# Setting Home Directory for application | |
WORKDIR /app | |
# copy csproj and restore as distinct layers | |
COPY dotnetapp.csproj . | |
RUN dotnet restore | |
# copy and build everything else | |
COPY . . | |
RUN dotnet publish -c Release -o out | |
EXPOSE 2223 | |
ENTRYPOINT ["dotnet", "out/main.dll"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment