Empty webapp complete

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Frank van den Berg
2026-07-01 23:10:46 +02:00
co-authored by Claude Sonnet 5
parent 4703d1f8bf
commit e503cf3930
63 changed files with 13245 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
FROM php:8.4-fpm-alpine
ARG UID=1000
ARG GID=1000
RUN apk add --no-cache \
icu-dev \
rabbitmq-c-dev \
libzip-dev \
$PHPIZE_DEPS \
&& docker-php-ext-configure intl \
&& docker-php-ext-install -j"$(nproc)" intl pdo_mysql zip opcache \
&& pecl install amqp \
&& docker-php-ext-enable amqp \
&& apk del $PHPIZE_DEPS
# Re-key www-data to the host UID/GID so files written into the bind-mounted
# app directory (var/, vendor/) stay owned by the host user, not root.
RUN deluser www-data 2>/dev/null || true \
&& delgroup www-data 2>/dev/null || true \
&& addgroup -g "${GID}" www-data \
&& adduser -D -H -u "${UID}" -G www-data -s /sbin/nologin www-data
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
COPY conf.d/symfony.ini /usr/local/etc/php/conf.d/symfony.ini
WORKDIR /var/www/html
USER www-data
+8
View File
@@ -0,0 +1,8 @@
date.timezone=UTC
memory_limit=256M
upload_max_filesize=20M
post_max_size=20M
opcache.enable=1
opcache.validate_timestamps=1
opcache.max_accelerated_files=20000