Skip to content

Commit 64fdb40

Browse files
committed
remove VOLUME directive as causes different permission issues on creation
1 parent 8abc11a commit 64fdb40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/non-root-user.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You can apply the following patches to your `Dockerfile`, `compose.override.yaml
3131
+
3232
WORKDIR /app
3333

34-
VOLUME /app/var/
34+
- VOLUME /app/var/
3535
@@ -46,6 +55,12 @@
3636
COPY --link --chmod=755 frankenphp/docker-entrypoint.sh /usr/local/bin/docker-entrypoint
3737
COPY --link frankenphp/Caddyfile /etc/frankenphp/Caddyfile
@@ -40,7 +40,7 @@ You can apply the following patches to your `Dockerfile`, `compose.override.yaml
4040
+ groupadd -g $PGID $GROUP; \
4141
+ useradd -u $PUID -g $PGID --no-create-home $USER; \
4242
+ mkdir -p var/cache var/log; \
43-
+ chown -R $PUID:$PGID /data/ /config/ var/cache var/log
43+
+ chown -R $PUID:$PGID /data/ /config/ var/
4444
+
4545
ENTRYPOINT ["docker-entrypoint"]
4646

@@ -78,7 +78,7 @@ You can apply the following patches to your `Dockerfile`, `compose.override.yaml
7878
composer run-script --no-dev post-install-cmd; \
7979
- chmod +x bin/console; sync;
8080
+ chmod +x bin/console; sync; \
81-
+ chown -R $PUID:$PGID var/cache var/log
81+
+ chown -R $PUID:$PGID var/
8282
+
8383
+USER $USER
8484
```

0 commit comments

Comments
 (0)