Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -22,11 +22,11 @@ RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
| 22 |
COPY . /app
|
| 23 |
|
| 24 |
# Expose the port Spaces will route to
|
| 25 |
-
EXPOSE
|
| 26 |
|
| 27 |
# healthcheck (optional)
|
| 28 |
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s \
|
| 29 |
CMD curl -f http://localhost:8080/health || exit 1
|
| 30 |
|
| 31 |
# Start the app (use server:app because your FastAPI app object is 'app' in server.py)
|
| 32 |
-
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 22 |
COPY . /app
|
| 23 |
|
| 24 |
# Expose the port Spaces will route to
|
| 25 |
+
EXPOSE 7860
|
| 26 |
|
| 27 |
# healthcheck (optional)
|
| 28 |
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s \
|
| 29 |
CMD curl -f http://localhost:8080/health || exit 1
|
| 30 |
|
| 31 |
# Start the app (use server:app because your FastAPI app object is 'app' in server.py)
|
| 32 |
+
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
|