Update Dockerfiles for .NET Core 1.1.0. Fixes #489

This commit is contained in:
SteveSandersonMS
2016-12-07 11:15:40 +00:00
parent 9c1c1b4023
commit 633969c7b4
6 changed files with 24 additions and 30 deletions

View File

@@ -1,17 +1,16 @@
FROM microsoft/dotnet:latest
FROM microsoft/dotnet:1.1.0-sdk-projectjson
RUN apt-get update
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
RUN apt-get install -y build-essential nodejs
COPY . /app
WORKDIR /app
COPY project.json .
RUN ["dotnet", "restore"]
COPY . /app
RUN ["dotnet", "build"]
EXPOSE 5000/tcp
ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]