Initial commit

This commit is contained in:
2025-08-01 22:04:00 +02:00
commit d1f466d1d4
155 changed files with 15995 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
FROM composer:latest as composer
FROM dunglas/frankenphp:php8.4-alpine
ARG USER=appuser
# Install PHP extensions
RUN install-php-extensions \
opcache \
intl \
pdo_pgsql \
pcov \
zip
RUN \
# Use "adduser -D ${USER}" for alpine based distros
adduser -D ${USER}; \
# Remove default capability
setcap -r /usr/local/bin/frankenphp; \
# Give write access to /data/caddy and /config/caddy
chown -R ${USER}:${USER} /data/caddy && chown -R ${USER}:${USER} /config/caddy
# Copy Composer from builder
COPY --from=composer /usr/bin/composer /usr/bin/composer
# Switch to the new user
USER ${USER}