Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -28,14 +28,14 @@ RUN touch $HOME/users.db && chmod 777 $HOME/users.db
|
|
28 |
# Change ownership of mentor.txt and temp_mentor.txt
|
29 |
RUN chown user:user $HOME/mentor.txt $HOME/temp_mentor.txt
|
30 |
|
31 |
-
# Move main.py to the working directory
|
32 |
-
RUN mv ./main.py $HOME
|
33 |
-
|
34 |
# Switch back to the user
|
35 |
USER user
|
36 |
|
37 |
# Set the working directory for the application
|
38 |
WORKDIR $HOME
|
39 |
|
|
|
|
|
|
|
40 |
# Start the application using gunicorn
|
41 |
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "--timeout", "300", "main:app"]
|
|
|
28 |
# Change ownership of mentor.txt and temp_mentor.txt
|
29 |
RUN chown user:user $HOME/mentor.txt $HOME/temp_mentor.txt
|
30 |
|
|
|
|
|
|
|
31 |
# Switch back to the user
|
32 |
USER user
|
33 |
|
34 |
# Set the working directory for the application
|
35 |
WORKDIR $HOME
|
36 |
|
37 |
+
RUN pwd && ls -l
|
38 |
+
|
39 |
+
|
40 |
# Start the application using gunicorn
|
41 |
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "--timeout", "300", "main:app"]
|