leo861 commited on
Commit
d1f14b6
·
verified ·
1 Parent(s): 98fef63

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -3
Dockerfile CHANGED
@@ -22,12 +22,10 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
22
  COPY --chown=user . /app
23
 
24
  # Set environment variables
25
- ENV FLASK_APP=app.py
26
- ENV FLASK_ENV=production
27
  ENV HF_HOME=/home/user/.cache/huggingface
28
 
29
  # Expose the port the app runs on
30
  EXPOSE 7860
31
 
32
  # Command to run the application
33
- CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--worker-class", "geventwebsocket.gunicorn.workers.GeventWebSocketWorker", "app:app"]
 
22
  COPY --chown=user . /app
23
 
24
  # Set environment variables
 
 
25
  ENV HF_HOME=/home/user/.cache/huggingface
26
 
27
  # Expose the port the app runs on
28
  EXPOSE 7860
29
 
30
  # Command to run the application
31
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]