Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -5
Dockerfile
CHANGED
|
@@ -17,12 +17,9 @@ RUN chmod 777 /code
|
|
| 17 |
# Set permissions for the database file
|
| 18 |
RUN touch /code/users.db && chmod 777 /code/users.db
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
RUN --chown=user temp_mentor.txt
|
| 23 |
|
| 24 |
COPY --chown=user:user . /code
|
| 25 |
|
| 26 |
-
COPY . .
|
| 27 |
-
|
| 28 |
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "--timeout", "300", "main:app"]
|
|
|
|
| 17 |
# Set permissions for the database file
|
| 18 |
RUN touch /code/users.db && chmod 777 /code/users.db
|
| 19 |
|
| 20 |
+
# Change ownership of mentor.txt and temp_mentor.txt
|
| 21 |
+
RUN chown user:user /code/mentor.txt /code/temp_mentor.txt
|
|
|
|
| 22 |
|
| 23 |
COPY --chown=user:user . /code
|
| 24 |
|
|
|
|
|
|
|
| 25 |
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "--timeout", "300", "main:app"]
|