Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -17,5 +17,5 @@ COPY main.py .
|
|
17 |
# Expose the port FastAPI will run on.
|
18 |
EXPOSE 8000
|
19 |
|
20 |
-
# Command to run the FastAPI app using uvicorn.
|
21 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
17 |
# Expose the port FastAPI will run on.
|
18 |
EXPOSE 8000
|
19 |
|
20 |
+
# Command to run the FastAPI app using uvicorn via the module interface.
|
21 |
+
CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|