feat: create dev system

This commit is contained in:
Rob committed 2026-08-14 11:19:59 +02:00
1 parent 98716c79b4
commit b514a62933
12 files changed
+209

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
FROM php:8.3-apache
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
git unzip libicu-dev libzip-dev libpng-dev libjpeg62-turbo-dev libfreetype6-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j"$(nproc)" intl gd mysqli pdo_mysql zip opcache \
&& a2enmod rewrite headers expires \
&& rm -rf /var/lib/apt/lists/*
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
COPY docker/php-apache/vhost.conf /etc/apache2/sites-available/000-default.conf
WORKDIR /var/www/html
COPY composer.json ./
RUN if [ -f composer.json ]; then composer install --no-interaction --prefer-dist --no-progress; fi
COPY . .
RUN mkdir -p var public/assets \
&& chown -R www-data:www-data var public
+12
View File
@@ -0,0 +1,12 @@
<VirtualHost *:80>
DocumentRoot /var/www/html/public
<Directory /var/www/html/public>
AllowOverride All
Options FollowSymLinks
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>