Spaces:
Running
Running
lancelotly
commited on
Update Dockerfile
Browse files- Dockerfile +9 -5
Dockerfile
CHANGED
@@ -4,7 +4,7 @@ USER root
|
|
4 |
RUN chmod -R 777 /usr/local/bin/fixuid && \
|
5 |
chown root:root /usr/local/bin/fixuid && \
|
6 |
chmod u+s /usr/local/bin/fixuid
|
7 |
-
|
8 |
RUN set -x && \
|
9 |
apt-get update && \
|
10 |
apt-get upgrade -y && \
|
@@ -17,11 +17,15 @@ RUN set -x && \
|
|
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 |
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
npm install -g nodemon ts-node && \
|
26 |
node -v
|
27 |
|
|
|
4 |
RUN chmod -R 777 /usr/local/bin/fixuid && \
|
5 |
chown root:root /usr/local/bin/fixuid && \
|
6 |
chmod u+s /usr/local/bin/fixuid
|
7 |
+
WORKDIR ~
|
8 |
RUN set -x && \
|
9 |
apt-get update && \
|
10 |
apt-get upgrade -y && \
|
|
|
17 |
|
18 |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash && \
|
19 |
# source .bashrc && \
|
|
|
|
|
|
|
20 |
|
21 |
+
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
|
22 |
+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
|
23 |
+
|
24 |
+
# export NVM_DIR="$HOME/.nvm" && \
|
25 |
+
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
|
26 |
+
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" && \
|
27 |
+
|
28 |
+
nvm install 22 && \
|
29 |
npm install -g nodemon ts-node && \
|
30 |
node -v
|
31 |
|