Update Dockerfile
Browse files- Dockerfile +1 -2
Dockerfile
CHANGED
|
@@ -6,5 +6,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 6 |
|
| 7 |
COPY app.py .
|
| 8 |
|
| 9 |
-
|
| 10 |
-
CMD ["sh", "-lc", "uvicorn app:app --host 0.0.0.0 --port ${PORT}"]
|
|
|
|
| 6 |
|
| 7 |
COPY app.py .
|
| 8 |
|
| 9 |
+
CMD ["sh", "-lc", "python -c \"import os; print('PORT=', os.getenv('PORT'));\" && uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860}"]
|
|
|