Spaces:
Runtime error
Runtime error
Commit ·
06a0d8d
1
Parent(s): 248f1c0
why cant I find node
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
|
@@ -5,14 +5,14 @@ ENV PYTHONUNBUFFERED 1
|
|
| 5 |
RUN apt-get update && apt-get install nodejs -y
|
| 6 |
|
| 7 |
# Set up a new user named "user" with user ID 1000
|
| 8 |
-
RUN useradd -m -u 1000 user
|
| 9 |
|
| 10 |
-
# Switch to the "user" user
|
| 11 |
-
USER user
|
| 12 |
|
| 13 |
-
# Set home to the user's home directory
|
| 14 |
-
ENV HOME=/home/user \
|
| 15 |
-
|
| 16 |
|
| 17 |
# Set the working directory to the user's home directory
|
| 18 |
WORKDIR $HOME/app
|
|
|
|
| 5 |
RUN apt-get update && apt-get install nodejs -y
|
| 6 |
|
| 7 |
# Set up a new user named "user" with user ID 1000
|
| 8 |
+
# RUN useradd -m -u 1000 user
|
| 9 |
|
| 10 |
+
# # Switch to the "user" user
|
| 11 |
+
# USER user
|
| 12 |
|
| 13 |
+
# # Set home to the user's home directory
|
| 14 |
+
# ENV HOME=/home/user \
|
| 15 |
+
# PATH=/home/user/.local/bin:$PATH
|
| 16 |
|
| 17 |
# Set the working directory to the user's home directory
|
| 18 |
WORKDIR $HOME/app
|