Skip to content

Instantly share code, notes, and snippets.

@gianuy
Created September 4, 2016 16:04
Show Gist options
  • Save gianuy/234411b3a64f044c3041c832284b5971 to your computer and use it in GitHub Desktop.
Save gianuy/234411b3a64f044c3041c832284b5971 to your computer and use it in GitHub Desktop.
Dockerfile for an ASP.Net Core Application
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