Dockerize Project

This commit is contained in:
Jan-Marlon Leibl 2023-11-03 21:17:49 +01:00
commit e679d02b41
205 changed files with 17941 additions and 0 deletions

20
docker/apache/Dockerfile Normal file
View file

@ -0,0 +1,20 @@
FROM php:8.2-apache
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y vim curl 7zip libicu-dev
RUN curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php \
&& php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer
RUN curl -sS https://get.symfony.com/cli/installer | bash && mv /root/.symfony5/bin/symfony /usr/local/bin/symfony
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& docker-php-ext-configure intl \
&& docker-php-ext-install pdo pdo_mysql intl opcache
COPY ./php.ini "${PHP_INI_DIR}/"
COPY ./xdebug.ini ./opcache.ini "${PHP_INI_DIR}/conf.d"/
RUN a2enmod rewrite