mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
The app doesn't run in Docker on base image `microsoft/dotnet:latest` because Microsoft.NETCore.App 1.0.1 isn't installed. Only 1.0.0 is installed. The app runs fine on base image `microsoft/dotnet:1.0.0-preview2-onbuild`.
17 lines
310 B
Docker
17 lines
310 B
Docker
FROM microsoft/dotnet:1.0.0-preview2-onbuild
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
|
|
|
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"]
|