Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -7,6 +7,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 7 |
|
| 8 |
COPY app.py ./
|
| 9 |
|
| 10 |
-
|
|
|
|
| 11 |
|
| 12 |
-
CMD ["
|
|
|
|
| 7 |
|
| 8 |
COPY app.py ./
|
| 9 |
|
| 10 |
+
ENV PORT=8000
|
| 11 |
+
EXPOSE ${PORT}
|
| 12 |
|
| 13 |
+
CMD ["sh", "-c", "uvicorn app:app --host 0.0.0.0 --port ${PORT}"]
|