Fred808 commited on
Commit
4cf4b93
·
verified ·
1 Parent(s): b9ed1a3

Upload 32 files

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -63,7 +63,11 @@ RUN set -eu && \
63
  mkdir -p /run /run/shm /storage && \
64
  # /run/shm should be a sticky tmpfs-like directory
65
  chmod 1777 /run/shm && \
66
- chmod 0777 /storage || true
 
 
 
 
67
 
68
  COPY --chmod=755 ./src /run/
69
  COPY --chmod=755 ./web /var/www/
 
63
  mkdir -p /run /run/shm /storage && \
64
  # /run/shm should be a sticky tmpfs-like directory
65
  chmod 1777 /run/shm && \
66
+ chmod 0777 /storage || true && \
67
+ # Prepare nginx config slot so non-root users (e.g. UID 1000 in Spaces)
68
+ # can write runtime site configs without permission errors.
69
+ mkdir -p /etc/nginx/sites-enabled && \
70
+ chmod 0777 /etc/nginx/sites-enabled || true
71
 
72
  COPY --chmod=755 ./src /run/
73
  COPY --chmod=755 ./web /var/www/