Skip to content

Commit 0a34630

Browse files
Add Node.js support in all the Docker containers
1 parent e9ca434 commit 0a34630

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

templates/Angular2Spa/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ COPY . /app
44

55
WORKDIR /app
66

7+
# Add Node.js to the container. If you don't want to wait for this to install every
8+
# time you rebuild your container, consider creating an image that has it preinstalled.
9+
RUN apt-get update
10+
RUN apt-get install -y build-essential nodejs nodejs-legacy
11+
712
RUN ["dotnet", "restore"]
813

914
RUN ["dotnet", "build"]

templates/KnockoutSpa/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ COPY . /app
44

55
WORKDIR /app
66

7+
# Add Node.js to the container. If you don't want to wait for this to install every
8+
# time you rebuild your container, consider creating an image that has it preinstalled.
9+
RUN apt-get update
10+
RUN apt-get install -y build-essential nodejs nodejs-legacy
11+
712
RUN ["dotnet", "restore"]
813

914
RUN ["dotnet", "build"]

templates/ReactReduxSpa/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ COPY . /app
44

55
WORKDIR /app
66

7+
# Add Node.js to the container. If you don't want to wait for this to install every
8+
# time you rebuild your container, consider creating an image that has it preinstalled.
9+
RUN apt-get update
10+
RUN apt-get install -y build-essential nodejs nodejs-legacy
11+
712
RUN ["dotnet", "restore"]
813

914
RUN ["dotnet", "build"]

templates/ReactSpa/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ COPY . /app
44

55
WORKDIR /app
66

7+
# Add Node.js to the container. If you don't want to wait for this to install every
8+
# time you rebuild your container, consider creating an image that has it preinstalled.
9+
RUN apt-get update
10+
RUN apt-get install -y build-essential nodejs nodejs-legacy
11+
712
RUN ["dotnet", "restore"]
813

914
RUN ["dotnet", "build"]

0 commit comments

Comments
 (0)