OussamaElfila21 commited on
Commit
e1b1b87
·
verified ·
1 Parent(s): 5d92054

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -7
Dockerfile CHANGED
@@ -26,11 +26,5 @@ COPY . .
26
  # Build Cython extensions
27
  RUN cd utils && python setup.py build_ext --inplace
28
 
29
- # Create necessary directories if they don't exist
30
- RUN mkdir -p data/models
31
-
32
- # Expose the port for FastAPI application
33
- EXPOSE 8000
34
-
35
  # Specify the command to run the application with Gunicorn
36
- CMD ["gunicorn", "app:app", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8000"]
 
26
  # Build Cython extensions
27
  RUN cd utils && python setup.py build_ext --inplace
28
 
 
 
 
 
 
 
29
  # Specify the command to run the application with Gunicorn
30
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]