wufan commited on
Commit
c9d1f9d
·
verified ·
1 Parent(s): f55113d

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -2,10 +2,19 @@ FROM python:3.8
2
 
3
  WORKDIR /code
4
 
 
 
 
 
 
 
 
5
  COPY ./requriements.txt /code/requriements.txt
6
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requriements.txt
8
 
 
 
9
  RUN useradd -m -u 1000 user
10
 
11
  # Switch to the "user" user
 
2
 
3
  WORKDIR /code
4
 
5
+ RUN wget https://registry.npmmirror.com/-/binary/node/latest-v16.x/node-v16.13.1-linux-x64.tar.gz -o /code/node-v16.rat.gz \
6
+ && tar -xvf node-v16.rat.gz \
7
+ && mv node-v16.13.1-linux-x64/* /usr/local/nodejs/ \
8
+ && ln -s /usr/local/nodejs/bin/node /usr/local/bin \
9
+ && ln -s /usr/local/nodejs/bin/npm /usr/local/bin \
10
+ && node -v
11
+
12
  COPY ./requriements.txt /code/requriements.txt
13
 
14
  RUN pip install --no-cache-dir --upgrade -r /code/requriements.txt
15
 
16
+
17
+
18
  RUN useradd -m -u 1000 user
19
 
20
  # Switch to the "user" user