chore: complete update

This commit is contained in:
2025-07-17 16:24:20 +02:00
parent 899227b0a4
commit 64a7051137
1300 changed files with 85570 additions and 2756 deletions

View File

@@ -7,10 +7,34 @@ RUN apt-get update && apt-get install -y \
unzip \
libzip-dev \
zip \
&& docker-php-ext-install zip pdo pdo_mysql \
&& docker-php-ext-install opcache \
libpng-dev \
libjpeg-dev \
libfreetype6-dev \
libwebp-dev \
libavif-dev \
libxpm-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-configure gd \
--with-freetype \
--with-jpeg \
--with-webp \
--with-avif \
--with-xpm \
&& docker-php-ext-install -j$(nproc) gd
RUN docker-php-ext-install -j$(nproc) \
zip \
pdo \
pdo_mysql \
opcache \
pcntl \
posix \
shmop
RUN pecl install apcu \
&& docker-php-ext-enable apcu
# Composer installieren
RUN curl -sS https://getcomposer.org/installer | php \
@@ -25,14 +49,21 @@ RUN if [ "$ENV" = "dev" ]; then \
WORKDIR /var/www/html
# Kopiere zuerst nur composer.json/lock für besseres Layer-Caching
COPY composer.json composer.lock ./
# Kopiere composer.json
COPY composer.json ./
# Installiere Abhängigkeiten - variiert je nach Umgebung
RUN if [ "$ENV" = "prod" ]; then \
composer install --no-dev --no-scripts --no-autoloader --optimize-autoloader; \
# Kopiere composer.lock falls vorhanden (robuste Lösung)
COPY composer.loc[k] ./
# Falls keine composer.lock existiert, erstelle eine leere um Layer-Caching zu ermöglichen
RUN [ ! -f composer.lock ] && touch composer.lock || true
# Remove potentially corrupted composer.lock and install dependencies
RUN rm -f composer.lock && \
if [ "$ENV" = "prod" ]; then \
composer install --no-dev --no-scripts --no-autoloader --optimize-autoloader; \
else \
composer install --no-scripts --no-autoloader; \
composer install --no-scripts --no-autoloader; \
fi
# Kopiere PHP-Konfigurationen

View File

@@ -6,3 +6,5 @@ session.cookie_samesite = Lax
date.timezone = Europe/Berlin
opcache.preload=/var/www/michaelschiemer/src/preload.php

View File

@@ -4,7 +4,7 @@ include = php.common.ini
[opcache]
opcache.enable=1
opcache.enable_cli=0
opcache.enable_cli=1
opcache.memory_consumption=128
opcache.max_accelerated_files=10000
; Häufigere Validierung im Dev-Modus