WebashalarForML commited on
Commit
673a3d9
·
verified ·
1 Parent(s): 21fa4e7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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", "120", "app:app"]
 
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"]