Spaces:
Running
Running
Upload Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -19,6 +19,12 @@ WORKDIR /app
|
|
19 |
# This ensures the directory exists and is writable by the user running the process
|
20 |
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
# Copy the requirements file into the container at /app
|
23 |
COPY requirements.txt .
|
24 |
|
|
|
19 |
# This ensures the directory exists and is writable by the user running the process
|
20 |
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
|
21 |
|
22 |
+
# --- Create the persistent storage mount point directory ---
|
23 |
+
# Create /data within the image and set permissions.
|
24 |
+
# This only helps if HF Spaces actually mounts a writable volume here.
|
25 |
+
RUN mkdir -p /data && chmod -R 777 /data
|
26 |
+
# ---
|
27 |
+
|
28 |
# Copy the requirements file into the container at /app
|
29 |
COPY requirements.txt .
|
30 |
|