Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -25,7 +25,7 @@ RUN pip install --upgrade pip
|
|
25 |
RUN pip install --no-cache-dir -r requirements.txt
|
26 |
|
27 |
# Create cache directory and set permissions
|
28 |
-
RUN mkdir -p /app/cache /app/uploads /app/data && chmod -R 777 /app/cache /app/uploads /app/data
|
29 |
RUN chmod -R 777 /app
|
30 |
|
31 |
# Copy the application code
|
@@ -36,4 +36,4 @@ ENV FLASK_APP=app.py \
|
|
36 |
|
37 |
EXPOSE 7860
|
38 |
|
39 |
-
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "
|
|
|
25 |
RUN pip install --no-cache-dir -r requirements.txt
|
26 |
|
27 |
# Create cache directory and set permissions
|
28 |
+
RUN mkdir -p /app/cache /app/uploads /app/data /app/models && chmod -R 777 /app/cache /app/uploads /app/data /app/models
|
29 |
RUN chmod -R 777 /app
|
30 |
|
31 |
# Copy the application code
|
|
|
36 |
|
37 |
EXPOSE 7860
|
38 |
|
39 |
+
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "600", "app:app"]
|