WebashalarForML commited on
Commit
4659fa4
·
verified ·
1 Parent(s): ef77c7c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -4
Dockerfile CHANGED
@@ -52,11 +52,10 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
52
  # Create directories for session storage, uploads, and cache
53
  RUN mkdir -p /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache && chmod -R 777 /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache
54
 
55
- #Set permission for the paddle OCR
56
  ENV PADDLEOCR_MODEL_DIR=/tmp/.paddleocr
57
  RUN mkdir -p /tmp/.paddleocr && chmod -R 777 /tmp/.paddleocr
58
 
59
-
60
  # Copy the rest of the application code to /app
61
  COPY . /app/
62
 
@@ -67,7 +66,5 @@ EXPOSE 7860
67
  ENV FLASK_APP=app.py
68
  ENV FLASK_ENV=production
69
 
70
- # Command to run the Flask app using Gunicorn
71
- #CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]
72
  # Command to run the Flask app using Gunicorn with 1 worker
73
  CMD ["gunicorn", "--workers=1", "--bind=0.0.0.0:7860", "--timeout=120", "app:app"]
 
52
  # Create directories for session storage, uploads, and cache
53
  RUN mkdir -p /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache && chmod -R 777 /app/flask_sessions /app/uploads /tmp/matplotlib /tmp/transformers_cache
54
 
55
+ # Set permission for the Paddle OCR
56
  ENV PADDLEOCR_MODEL_DIR=/tmp/.paddleocr
57
  RUN mkdir -p /tmp/.paddleocr && chmod -R 777 /tmp/.paddleocr
58
 
 
59
  # Copy the rest of the application code to /app
60
  COPY . /app/
61
 
 
66
  ENV FLASK_APP=app.py
67
  ENV FLASK_ENV=production
68
 
 
 
69
  # Command to run the Flask app using Gunicorn with 1 worker
70
  CMD ["gunicorn", "--workers=1", "--bind=0.0.0.0:7860", "--timeout=120", "app:app"]