Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -21,11 +21,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
21 |
|
22 |
# Copy your application code
|
23 |
COPY app.py .
|
24 |
-
|
25 |
# Expose the port your API will run on
|
26 |
# Hugging Face Spaces typically uses port 8000 for custom Docker builds
|
27 |
EXPOSE 8000
|
28 |
|
29 |
# Command to start the FastAPI application using Uvicorn as a Python module.
|
30 |
# This is more robust as it explicitly invokes 'python' to run the 'uvicorn' module.
|
31 |
-
CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
21 |
|
22 |
# Copy your application code
|
23 |
COPY app.py .
|
24 |
+
|
25 |
# Expose the port your API will run on
|
26 |
# Hugging Face Spaces typically uses port 8000 for custom Docker builds
|
27 |
EXPOSE 8000
|
28 |
|
29 |
# Command to start the FastAPI application using Uvicorn as a Python module.
|
30 |
# This is more robust as it explicitly invokes 'python' to run the 'uvicorn' module.
|
31 |
+
CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|