You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Dockerfile
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,20 @@
1
1
FROM python:3.9
2
-
3
2
WORKDIR /app/
4
3
4
+
RUN apt-get update
5
+
RUN apt-get install -y ca-certificates curl gnupg
6
+
5
7
# Install NodeJS
6
8
# --------------
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 npm@8.5.0
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
0 commit comments