Created
September 4, 2016 16:04
-
-
Save gianuy/234411b3a64f044c3041c832284b5971 to your computer and use it in GitHub Desktop.
Dockerfile for an ASP.Net Core Application
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:latest | |
COPY . /app | |
WORKDIR /app | |
RUN ["dotnet", "restore"] | |
RUN ["dotnet", "build"] | |
EXPOSE 5000/tcp | |
ENV ASPNETCORE_URLS http://*:5000 | |
ENTRYPOINT ["dotnet", "run"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment