chemistrymath commited on
Commit
b151582
·
verified ·
1 Parent(s): 9aa01f5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y \
15
  ENV MP_MODELS_PATH=/tmp/mediapipe_models
16
  ENV MPLCONFIGDIR=/tmp/matplotlib
17
 
18
- # ✅ Ensure directories exist
19
  RUN mkdir -p $MP_MODELS_PATH $MPLCONFIGDIR
20
 
21
  # Copy all files from the local directory to the container
@@ -27,5 +27,5 @@ RUN pip install --no-cache-dir -r requirements.txt
27
  # Expose the port Flask will run on
28
  EXPOSE 7860
29
 
30
- # ✅ Run the application using Gunicorn
31
  CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120", "app:app"]
 
15
  ENV MP_MODELS_PATH=/tmp/mediapipe_models
16
  ENV MPLCONFIGDIR=/tmp/matplotlib
17
 
18
+ # ✅ Ensure writable directories exist
19
  RUN mkdir -p $MP_MODELS_PATH $MPLCONFIGDIR
20
 
21
  # Copy all files from the local directory to the container
 
27
  # Expose the port Flask will run on
28
  EXPOSE 7860
29
 
30
+ # ✅ Run the application using Gunicorn (Production Ready)
31
  CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120", "app:app"]