lancelotly commited on
Commit
fd915f9
·
verified ·
1 Parent(s): d821d69

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -8,13 +8,21 @@ RUN chmod -R 777 /usr/local/bin/fixuid && \
8
  RUN set -x && \
9
  apt-get update && \
10
  apt-get upgrade -y && \
11
- apt purge nodejs && \
12
  apt autoremove && \
13
- apt-get install -y nodejs npm python3 cron nginx jq sshpass rclone unzip libatomic1 && \
14
  # git curl wget tzdata perl openssl openssh-client procps
15
  apt-get clean && \
16
  ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
17
  echo "Asia/Shanghai" >/etc/timezone && \
 
 
 
 
 
 
 
 
 
18
  npm install -g nodemon ts-node && \
19
  node -v
20
 
 
8
  RUN set -x && \
9
  apt-get update && \
10
  apt-get upgrade -y && \
 
11
  apt autoremove && \
12
+ apt-get install -y python3 cron nginx jq sshpass rclone zip unzip libatomic1 && \
13
  # git curl wget tzdata perl openssl openssh-client procps
14
  apt-get clean && \
15
  ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
16
  echo "Asia/Shanghai" >/etc/timezone && \
17
+
18
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash && \
19
+ source ~/.bashrc && \
20
+ export NVM_DIR="$HOME/.nvm" && \
21
+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
22
+ [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" && \
23
+ echo "nvm reloaded" && \
24
+
25
+ nvm install node -g && \
26
  npm install -g nodemon ts-node && \
27
  node -v
28