Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -18,7 +18,10 @@ PY
|
|
| 18 |
|
| 19 |
COPY . .
|
| 20 |
|
|
|
|
|
|
|
|
|
|
| 21 |
EXPOSE 7860
|
| 22 |
|
| 23 |
# Start only the API
|
| 24 |
-
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 18 |
|
| 19 |
COPY . .
|
| 20 |
|
| 21 |
+
# ✅ Create writable data directory
|
| 22 |
+
RUN mkdir -p /app/data && chmod -R 777 /app/data
|
| 23 |
+
|
| 24 |
EXPOSE 7860
|
| 25 |
|
| 26 |
# Start only the API
|
| 27 |
+
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
|