Skip to content

Instantly share code, notes, and snippets.

@jcorioland
Created May 4, 2017 06:46
Show Gist options
  • Save jcorioland/3b135b5cd9d25f671c9c57a3bc26aa49 to your computer and use it in GitHub Desktop.
Save jcorioland/3b135b5cd9d25f671c9c57a3bc26aa49 to your computer and use it in GitHub Desktop.
Exemple de Dockerfile pour une application .NET Core
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