Spaces:
Running
Running
lancelotly
commited on
Update Dockerfile
Browse files- 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
|
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 |
|