Spaces:
Running
Running
Update Dockerfile
Browse files- 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 ["
|
|
|
|
| 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"]
|