Spaces:
Sleeping
Sleeping
Hkoradiya123 commited on
Commit ·
ec1f6b2
1
Parent(s): da55b15
feat: Update Dockerfile to enhance logging configuration for better visibility
Browse files- backend/Dockerfile +3 -1
backend/Dockerfile
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
|
|
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
COPY requirements.txt .
|
|
@@ -8,4 +10,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 8 |
|
| 9 |
COPY . .
|
| 10 |
|
| 11 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
+
ENV PYTHONUNBUFFERED=1
|
| 4 |
+
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
COPY requirements.txt .
|
|
|
|
| 10 |
|
| 11 |
COPY . .
|
| 12 |
|
| 13 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--log-level", "info", "--access-log"]
|