Spaces:
Sleeping
Sleeping
Fix Dockerfile: add data copy and permissions
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -14,9 +14,13 @@ COPY requirements.txt ./
|
|
| 14 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
COPY src/ ./src/
|
|
|
|
| 17 |
|
| 18 |
-
# Create
|
| 19 |
-
RUN mkdir -p
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
EXPOSE 8501
|
| 22 |
|
|
|
|
| 14 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
COPY src/ ./src/
|
| 17 |
+
COPY data/ ./data/
|
| 18 |
|
| 19 |
+
# Create models directory
|
| 20 |
+
RUN mkdir -p models
|
| 21 |
+
|
| 22 |
+
# HF Spaces runs as user 1000 — must give write permissions
|
| 23 |
+
RUN chmod -R 777 /app/data /app/models
|
| 24 |
|
| 25 |
EXPOSE 8501
|
| 26 |
|