evodocker/apache2-php/bookworm/Dockerfile
Ludovic Poujol e612a5d921
Some checks failed
gitea/evodocker/pipeline/head There was a failure building this commit
Tring a new way to organize the dockerfiles
2024-04-25 16:51:22 +02:00

38 lines
870 B
Docker

# Official Debian image
FROM debian:bookworm
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apache2 \
libapache2-mod-php8.2 \
php8.2 \
php8.2-cli \
php8.2-curl \
php8.2-gd \
php8.2-imagick \
php8.2-imap \
php8.2-intl \
php8.2-ldap \
php8.2-mysql \
php8.2-mbstring \
php8.2-ssh2 \
php8.2-xml \
php8.2-zip \
composer \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY apache-evolinux-defaults.conf /etc/apache2/conf-available
COPY php-evolinux-defaults.ini /etc/php/8.2/apache2/conf.d
RUN a2enconf apache-evolinux-defaults
RUN a2enmod rewrite remoteip headers
RUN echo "export APACHE_ARGUMENTS='-DFOREGROUND'" >>/etc/apache2/envvars
EXPOSE 80
VOLUME /var/www/
CMD ["apache2ctl", "-k", "start"]