Created
May 4, 2017 06:46
-
-
Save jcorioland/3b135b5cd9d25f671c9c57a3bc26aa49 to your computer and use it in GitHub Desktop.
Exemple de Dockerfile pour une application .NET Core
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:1.1.0-sdk-projectjson | |
MAINTAINER Julien Corioland, Microsoft (@jcorioland) | |
WORKDIR /app | |
ENTRYPOINT ["dotnet", "run"] | |
EXPOSE 5000 | |
ENV ASPNETCORE_URLS http://0.0.0.0:5000 | |
COPY project.json ./ | |
RUN ["dotnet", "restore"] | |
COPY . /app | |
RUN ["dotnet", "build"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment