Spaces:
Runtime error
Runtime error
Avinash commited on
Commit ·
ff2ed7d
1
Parent(s): 059b055
fix: install worker deps via requirements.txt
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -1,7 +1,10 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
-
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
COPY worker.py .
|
|
|
|
| 6 |
|
| 7 |
-
CMD ["python", "
|
|
|
|
| 1 |
FROM python:3.11-slim
|
|
|
|
| 2 |
WORKDIR /app
|
| 3 |
|
| 4 |
+
COPY requirements.txt .
|
| 5 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 6 |
+
|
| 7 |
COPY worker.py .
|
| 8 |
+
ENV PYTHONUNBUFFERED=1
|
| 9 |
|
| 10 |
+
CMD ["python", "worker.py"]
|