evodocker/apache2-php/bullseye/Dockerfile
Ludovic Poujol 4ea3469f5d
All checks were successful
gitea/evodocker/pipeline/head This commit looks good
apache2-php/bullseye/Dockerfile > fix wrong file name copy
2024-04-24 18:04:37 +02:00

38 lines
912 B
Docker

# Official Debian image
FROM debian:bullseye
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apache2 \
libapache2-mod-php7.4 \
php7.4 \
php7.4-cli \
php7.4-curl \
php7.4-gd \
php7.4-imagick \
php7.4-imap \
php7.4-intl \
php7.4-ldap \
php7.4-mysql \
php7.4-mbstring \
php7.4-ssh2 \
php7.4-xml \
php7.4-zip \
composer \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY apache2-php/bullseye/apache-evolinux-defaults.conf /etc/apache2/conf-available
COPY apache2-php/bullseye/php-evolinux-defaults.ini /etc/php/7.4/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"]