Skip to content

Commit 76f6c52

Browse files
committed
Install node for Release
1 parent 840fe8d commit 76f6c52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/containers/container-tools-react.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The next step is different depending on whether you're using Linux containers or
6666

6767
A *Dockerfile*, the recipe for creating a final Docker image, is created in the project. Refer to [Dockerfile reference](https://docs.docker.com/engine/reference/builder/) for an understanding of the commands within it.
6868

69-
Open the *Dockerfile* in the project, and add the following lines to install Node.js 10.x in the container. Be sure to add these lines in the first section, to add the installation of the Node package manager *npm.exe* to the base image that is used in subsequent steps.
69+
Open the *Dockerfile* in the project, and add the following lines to install Node.js 10.x in the container. Be sure to add these lines both in the first section, to add the installation of the Node package manager *npm.exe* to the base image, as well as in the `build` section.
7070

7171
```
7272
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
@@ -84,6 +84,8 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
8484
RUN apt-get install -y nodejs
8585
8686
FROM microsoft/dotnet:2.2-sdk-stretch AS build
87+
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
88+
RUN apt-get install -y nodejs
8789
WORKDIR /src
8890
COPY ["WebApplication37/WebApplication37.csproj", "WebApplication37/"]
8991
RUN dotnet restore "WebApplication37/WebApplication37.csproj"

0 commit comments

Comments
 (0)