evodocker/apache2-php/bookworm/Dockerfile
Ludovic Poujol 9c524d108b
Some checks failed
gitea/evodocker/pipeline/head There was a failure building this commit
apache2-php > Add bookworm and jessie
2024-04-24 17:57:00 +02:00

38 lines
912 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 apache2-php/bookworm/apache-evolinux-defaults.conf /etc/apache2/conf-available
COPY apache2-php/bookworm/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"]