Files
JavaScriptServices/templates/ReactSpa/Dockerfile

18 lines
340 B
Docker

FROM microsoft/dotnet:latest
RUN apt-get update
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
RUN apt-get install -y build-essential nodejs
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"]