mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 10:08:57 +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 update
|
||||||
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY project.json .
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
||||||
EXPOSE 5000/tcp
|
EXPOSE 5000/tcp
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ FROM microsoft/dotnet:latest
|
|||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY project.json .
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
||||||
EXPOSE 5000/tcp
|
EXPOSE 5000/tcp
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ FROM microsoft/dotnet:latest
|
|||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY project.json .
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
||||||
EXPOSE 5000/tcp
|
EXPOSE 5000/tcp
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ FROM microsoft/dotnet:latest
|
|||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY project.json .
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
||||||
EXPOSE 5000/tcp
|
EXPOSE 5000/tcp
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
FROM microsoft/dotnet:latest
|
FROM microsoft/dotnet:latest
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY project.json .
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
||||||
EXPOSE 5000/tcp
|
EXPOSE 5000/tcp
|
||||||
|
|||||||
Reference in New Issue
Block a user