Skip to content

Commit

Permalink
Merge pull request #166 from shyim/fix-rootless
Browse files Browse the repository at this point in the history
fix: rootless writeable /var/www/html in nginx and caddy
  • Loading branch information
shyim authored May 31, 2024
2 parents 9099248 + 37da87f commit 4c1a6dc
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 4c1a6dc

Please sign in to comment.