Add project files

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

View File

@@ -0,0 +1,30 @@
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
# Development-Konfiguration nutzen
RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
# Xdebug installieren
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug
# Xdebug-Konfiguration kopieren
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
WORKDIR /var/www/html