Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
@@ -6,8 +6,8 @@ RUN useradd -m -u 1000 user
|
|
6 |
RUN pwd && ls -l
|
7 |
|
8 |
# Set the working directory and user environment variables
|
9 |
-
ENV HOME=/
|
10 |
-
PATH=/
|
11 |
|
12 |
# Switch to the user's home directory
|
13 |
WORKDIR $HOME
|
@@ -38,6 +38,5 @@ WORKDIR $HOME
|
|
38 |
|
39 |
RUN pwd && ls -l
|
40 |
|
41 |
-
|
42 |
# Start the application using gunicorn
|
43 |
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "--timeout", "300", "main:app"]
|
|
|
6 |
RUN pwd && ls -l
|
7 |
|
8 |
# Set the working directory and user environment variables
|
9 |
+
ENV HOME=/
|
10 |
+
PATH=/bin:$PATH
|
11 |
|
12 |
# Switch to the user's home directory
|
13 |
WORKDIR $HOME
|
|
|
38 |
|
39 |
RUN pwd && ls -l
|
40 |
|
|
|
41 |
# Start the application using gunicorn
|
42 |
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "--timeout", "300", "main:app"]
|