Created
September 1, 2017 06:34
-
-
Save j-mprabhakaran/69f62a33a3995af9cee1bd98a1631a6c to your computer and use it in GitHub Desktop.
Dockerfile-DotNet
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.1-sdk | |
MAINTAINER Author<[email protected]> | |
RUN mkdir /app | |
WORKDIR /app | |
COPY dotnetapp.csproj . | |
RUN dotnet restore | |
COPY . . | |
RUN dotnet publish -c Release -o out | |
EXPOSE 5000/tcp | |
CMD ["dotnet", "out/dotnetapp.dll"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment