feat: build non-root image variants (#310)
authorThomas B. <redacted>
Tue, 15 Apr 2025 19:46:17 +0000 (21:46 +0200)
committerGitHub <redacted>
Tue, 15 Apr 2025 19:46:17 +0000 (21:46 +0200)
commitef4b8cc59eecbf0e25c66c7f3c464594cc310761
tree077a4c7ba4aaa404d5364a734a85989e657b46ab
parentbeb772d0ca96cc0d70fee139ff6e8a729c14c32f
feat: build non-root image variants (#310)

Adds an additional stage to the Dockerfile to create images with default user www-data.
The apache webserver listens on unprivileged port 8000 instead of 80.
Publish all variants with an additional tag ending in `-nonroot` for distinction.

Refs: #306
14 files changed:
.github/workflows/build.yml
.github/workflows/test.yml
apache/Dockerfile
apache/docker-entrypoint.sh
apache/nonroot-add.txt [new file with mode: 0644]
fpm-alpine/Dockerfile
fpm-alpine/docker-entrypoint.sh
fpm/Dockerfile
fpm/docker-entrypoint.sh
templates/Dockerfile-alpine.templ
templates/Dockerfile-debian.templ
templates/docker-entrypoint.sh
tests/docker-compose.test-apache-postgres.yml
update.sh
git clone https://git.99rst.org/PROJECT