Skip to content

Commit 9e40c6c

Browse files
committed
use install script
1 parent 8bdf3fe commit 9e40c6c

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

docs/Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,12 @@ FROM python:3.9
22
WORKDIR /app/
33

44
RUN apt-get update
5-
RUN apt-get install -y ca-certificates curl gnupg
65

76
# Install NodeJS
87
# --------------
9-
# Download and import the Nodesource GPG key
10-
RUN mkdir -p /etc/apt/keyrings
11-
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
12-
#Create deb repository
13-
RUN NODE_MAJOR=20
14-
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
15-
# Run Update and Install
16-
RUN apt-get update
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
1711
RUN apt-get install nodejs -y
1812

1913
# Install Poetry

0 commit comments

Comments
 (0)