Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
CHANGED
@@ -10,6 +10,19 @@ ENV HOME=/home/user \
|
|
10 |
GRADIO_PORT=8000 \
|
11 |
URL_GRADIO=https://localhost:8000/
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
COPY . .
|
14 |
|
15 |
CMD ["python", "main.py"]
|
|
|
10 |
GRADIO_PORT=8000 \
|
11 |
URL_GRADIO=https://localhost:8000/
|
12 |
|
13 |
+
# Set up a new user named "user" with user ID 1000
|
14 |
+
RUN useradd -m -u 1000 user
|
15 |
+
|
16 |
+
# Switch to the "user" user
|
17 |
+
USER user
|
18 |
+
|
19 |
+
# Set home to the user's home directory
|
20 |
+
ENV HOME=/home/user \
|
21 |
+
PATH=/home/user/.local/bin:$PATH
|
22 |
+
|
23 |
+
# Set the working directory to the user's home directory
|
24 |
+
WORKDIR $HOME/app
|
25 |
+
|
26 |
COPY . .
|
27 |
|
28 |
CMD ["python", "main.py"]
|