Add project files

This commit is contained in:
Frank Woeckener
2025-03-18 10:42:10 +01:00
parent e429c37f62
commit 3133fdad34
22 changed files with 619 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
FROM php:8.1-fpm
# Abhängigkeiten installieren
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libzip-dev \
zip \
unzip
# PHP Extensions installieren
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) \
gd \
pdo \
pdo_mysql \
zip
# OPCache für Produktion aktivieren
RUN docker-php-ext-install opcache \
&& docker-php-ext-enable opcache
WORKDIR /var/www/html
# Produktionskonfiguration nutzen
RUN cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini