Skip to content

Commit

Permalink
fix: rootless writeable /var/www/html in nginx and caddy
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed May 31, 2024
1 parent 9099248 commit 37da87f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion images/caddy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ apk add --no-cache \
caddy
EOF

COPY --link rootfs /
COPY --link rootfs/etc /etc
COPY --link --chown=82:82 rootfs/var/www/html /var/www/html
EXPOSE 8000

CMD ["/usr/bin/hivemind", "/etc/Procfile"]
3 changes: 2 additions & 1 deletion images/nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ apk add --no-cache \
nginx
EOF

COPY --link rootfs /
COPY --link rootfs/etc /etc
COPY --link --chown=82:82 rootfs/var/www/html /var/www/html
EXPOSE 8000

CMD ["/usr/bin/hivemind", "/etc/Procfile"]

0 comments on commit 37da87f

Please sign in to comment.