Skip to content

Commit d6f9bfe

Browse files
authored
update nodejs install method in docker (#1168)
* fix docker nodejs install * use install script
1 parent 341a492 commit d6f9bfe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
FROM python:3.9
2-
32
WORKDIR /app/
43

4+
RUN apt-get update
5+
56
# Install NodeJS
67
# --------------
7-
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
8-
RUN apt-get install -y build-essential nodejs npm
9-
RUN npm install -g [email protected]
8+
RUN curl -SLO https://deb.nodesource.com/nsolid_setup_deb.sh
9+
RUN chmod 500 nsolid_setup_deb.sh
10+
RUN ./nsolid_setup_deb.sh 20
11+
RUN apt-get install nodejs -y
1012

1113
# Install Poetry
1214
# --------------

0 commit comments

Comments
 (0)