mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Copy only project.json before dotnet restore in Dockerfile templates
This commit is contained in:
committed by
SteveSandersonMS
parent
cf1a127e7d
commit
a631f77a33
@@ -3,12 +3,12 @@ FROM microsoft/dotnet:latest
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
||||
|
||||
COPY . /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY project.json .
|
||||
RUN ["dotnet", "restore"]
|
||||
|
||||
COPY . /app
|
||||
RUN ["dotnet", "build"]
|
||||
|
||||
EXPOSE 5000/tcp
|
||||
|
||||
Reference in New Issue
Block a user