Spaces:
Sleeping
Sleeping
Commit
·
99a91e8
1
Parent(s):
ea8995e
Fix DockerFile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -20,7 +20,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
20 |
COPY . .
|
21 |
|
22 |
# Expose FastAPI port
|
23 |
-
EXPOSE
|
24 |
|
25 |
# Run FastAPI with uvicorn
|
26 |
-
CMD ["
|
|
|
20 |
COPY . .
|
21 |
|
22 |
# Expose FastAPI port
|
23 |
+
EXPOSE 7860
|
24 |
|
25 |
# Run FastAPI with uvicorn
|
26 |
+
CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-7860}"]
|