Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -1,6 +1,10 @@
|
|
| 1 |
FROM python:3.9
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
RUN
|
|
|
|
|
|
|
| 5 |
COPY . .
|
|
|
|
|
|
|
| 6 |
CMD ["python", "api.py"]
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
+
|
| 3 |
+
# Create writable cache directory
|
| 4 |
+
RUN mkdir -p /tmp/cache && chmod 777 /tmp/cache
|
| 5 |
+
|
| 6 |
+
WORKDIR /app
|
| 7 |
COPY . .
|
| 8 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
+
|
| 10 |
CMD ["python", "api.py"]
|