Spaces:
Running
Running
DeFactOfficial
commited on
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -32,10 +32,10 @@ ENV HOME=/home/hamster \
|
|
32 |
STATIC_SITE_hamster=$HOME/code/public
|
33 |
|
34 |
# Install Node.js 20 (using n instead of nodesource for better HF compatibility)
|
35 |
-
RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n \
|
36 |
-
&& bash n 20 \
|
37 |
-
&& rm n \
|
38 |
-
&& npm install -g npm@latest
|
39 |
|
40 |
# pm2 is awesome... lets you run node.js scripts as services with zero configuration
|
41 |
#RUN npm install pm2 -g
|
|
|
32 |
STATIC_SITE_hamster=$HOME/code/public
|
33 |
|
34 |
# Install Node.js 20 (using n instead of nodesource for better HF compatibility)
|
35 |
+
RUN sudo curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n \
|
36 |
+
&& sudo bash n 20 \
|
37 |
+
&& sudo rm n \
|
38 |
+
&& sudo npm install -g npm@latest
|
39 |
|
40 |
# pm2 is awesome... lets you run node.js scripts as services with zero configuration
|
41 |
#RUN npm install pm2 -g
|