Perform nodejs installation before COPY in Dockerfile templates
This commit is contained in:
parent
c07bd96270
commit
cf1a127e7d
|
|
@ -1,14 +1,12 @@
|
||||||
FROM microsoft/dotnet:latest
|
FROM microsoft/dotnet:latest
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Add Node.js to the container. If you don't want to wait for this to install every
|
|
||||||
# time you rebuild your container, consider creating an image that has it preinstalled.
|
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
|
||||||
|
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,12 @@
|
||||||
FROM microsoft/dotnet:latest
|
FROM microsoft/dotnet:latest
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Add Node.js to the container. If you don't want to wait for this to install every
|
|
||||||
# time you rebuild your container, consider creating an image that has it preinstalled.
|
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
|
||||||
|
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,12 @@
|
||||||
FROM microsoft/dotnet:latest
|
FROM microsoft/dotnet:latest
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Add Node.js to the container. If you don't want to wait for this to install every
|
|
||||||
# time you rebuild your container, consider creating an image that has it preinstalled.
|
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
|
||||||
|
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,12 @@
|
||||||
FROM microsoft/dotnet:latest
|
FROM microsoft/dotnet:latest
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Add Node.js to the container. If you don't want to wait for this to install every
|
|
||||||
# time you rebuild your container, consider creating an image that has it preinstalled.
|
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get install -y build-essential nodejs nodejs-legacy
|
|
||||||
|
|
||||||
RUN ["dotnet", "restore"]
|
RUN ["dotnet", "restore"]
|
||||||
|
|
||||||
RUN ["dotnet", "build"]
|
RUN ["dotnet", "build"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue