Copy only project.json before dotnet restore in Dockerfile templates

This commit is contained in:
Aidan Steele
2016-08-04 11:56:10 +10:00
committed by SteveSandersonMS
parent cf1a127e7d
commit a631f77a33
5 changed files with 10 additions and 10 deletions

View File

@@ -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