Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -28,10 +28,10 @@ RUN pip3 install --no-cache-dir -r backend/python/requirements.txt
|
|
| 28 |
COPY . .
|
| 29 |
|
| 30 |
# --- Create Runtime Directories & Set Permissions ---
|
| 31 |
-
# Create directories
|
| 32 |
-
# Then, change
|
| 33 |
-
RUN mkdir -p /app/backend/uploads /app/backend/temp /app/backend/results
|
| 34 |
-
|
| 35 |
|
| 36 |
# --- Build the React Frontend ---
|
| 37 |
# This runs the memory-efficient build script from web/package.json
|
|
|
|
| 28 |
COPY . .
|
| 29 |
|
| 30 |
# --- Create Runtime Directories & Set Permissions ---
|
| 31 |
+
# Create ephemeral directories for temporary files. The database will be in-memory.
|
| 32 |
+
# Then, change ownership to the non-root 'node' user so the app has write access.
|
| 33 |
+
RUN mkdir -p /app/backend/uploads /app/backend/temp /app/backend/results && \
|
| 34 |
+
chown -R node:node /app/backend/uploads /app/backend/temp /app/backend/results
|
| 35 |
|
| 36 |
# --- Build the React Frontend ---
|
| 37 |
# This runs the memory-efficient build script from web/package.json
|