mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 10:08:57 +00:00
17 lines
294 B
Docker
17 lines
294 B
Docker
FROM microsoft/dotnet:latest
|
|
|
|
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"]
|