Spaces:
Sleeping
Sleeping
anoderb commited on
Commit ·
0cc435f
1
Parent(s): d8fb724
fix: create /app/data dir with correct permissions for non-root user
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -39,8 +39,8 @@ RUN pip install --no-cache-dir --upgrade pip \
|
|
| 39 |
# Copy backend python packages
|
| 40 |
COPY --chown=user backend/ ./
|
| 41 |
|
| 42 |
-
# Establish web serving static destination directory and
|
| 43 |
-
RUN mkdir -p /app/static /app/models && chown -R user:user /app/static /app/models
|
| 44 |
COPY --chown=user --from=builder /app/frontend/out /app/static
|
| 45 |
|
| 46 |
# Enforce secure runner execution ownership context
|
|
|
|
| 39 |
# Copy backend python packages
|
| 40 |
COPY --chown=user backend/ ./
|
| 41 |
|
| 42 |
+
# Establish web serving static destination directory, model directory, and data directory
|
| 43 |
+
RUN mkdir -p /app/static /app/models /app/data && chown -R user:user /app/static /app/models /app/data
|
| 44 |
COPY --chown=user --from=builder /app/frontend/out /app/static
|
| 45 |
|
| 46 |
# Enforce secure runner execution ownership context
|