Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -8,9 +8,12 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
| 8 |
|
| 9 |
RUN mkdir /.cache && chmod 777 /.cache
|
| 10 |
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
|
| 14 |
-
RUN chmod 777 users.db # Set permissions for the database file
|
| 15 |
|
| 16 |
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "--timeout", "300", "main:app"]
|
|
|
|
| 8 |
|
| 9 |
RUN mkdir /.cache && chmod 777 /.cache
|
| 10 |
|
| 11 |
+
# Set permissions for the working directory
|
| 12 |
+
RUN mkdir /code && chmod 777 /code
|
| 13 |
+
|
| 14 |
+
# Set permissions for the database file
|
| 15 |
+
RUN touch /code/users.db && chmod 777 /code/users.db
|
| 16 |
|
| 17 |
+
COPY . .
|
|
|
|
| 18 |
|
| 19 |
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "--timeout", "300", "main:app"]
|