sksameermujahid commited on
Commit
4ebe660
·
verified ·
1 Parent(s): fc2440c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -26,6 +26,9 @@ RUN mkdir -p /app/logs \
26
  # Switch back to non-root user
27
  USER user
28
 
 
 
 
29
  # Copy requirements first to leverage Docker cache
30
  COPY --chown=user:user requirements.txt .
31
 
@@ -51,4 +54,4 @@ ENV LOG_DIR=/app/logs
51
  EXPOSE 7860
52
 
53
  # Run the application
54
- CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--threads", "8", "--timeout", "0", "app:app"]
 
26
  # Switch back to non-root user
27
  USER user
28
 
29
+ # Upgrade pip
30
+ RUN pip install --upgrade pip
31
+
32
  # Copy requirements first to leverage Docker cache
33
  COPY --chown=user:user requirements.txt .
34
 
 
54
  EXPOSE 7860
55
 
56
  # Run the application
57
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--threads", "8", "--timeout", "0", "app:app"]