Block a user
apache-php (8.4)
Published 2026-05-10 17:59:43 +02:00 by ervin
Installation
docker pull git.ervin.hu/ervin/apache-php:8.4sha256:47e63116ffec1094a172688f79f34e28ed65d33610d7786fd22257b3a08ca942
Image Layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1771804800' |
| ARG PHP_VERSION=8.4 |
| RUN |1 PHP_VERSION=8.4 /bin/sh -c apt-get update && apt-get install -y apt-transport-https lsb-release ca-certificates curl unzip gnupg2 # buildkit |
| RUN |1 PHP_VERSION=8.4 /bin/sh -c curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb && dpkg -i /tmp/debsuryorg-archive-keyring.deb && rm /tmp/debsuryorg-archive-keyring.deb && echo "deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && apt-get update # buildkit |
| RUN |1 PHP_VERSION=8.4 /bin/sh -c apt-get install -y apache2 libapache2-mod-php${PHP_VERSION} php${PHP_VERSION} php${PHP_VERSION}-memcached php${PHP_VERSION}-mysqli php${PHP_VERSION}-gd php${PHP_VERSION}-mbstring php${PHP_VERSION}-curl php${PHP_VERSION}-xml php${PHP_VERSION}-zip php${PHP_VERSION}-intl php${PHP_VERSION}-soap php${PHP_VERSION}-bcmath php${PHP_VERSION}-opcache php${PHP_VERSION}-readline php${PHP_VERSION}-imap php${PHP_VERSION}-ldap php${PHP_VERSION}-sqlite3 php${PHP_VERSION}-pgsql php${PHP_VERSION}-bz2 && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN |1 PHP_VERSION=8.4 /bin/sh -c a2enmod rewrite remoteip && sed -i 's|AllowOverride None|AllowOverride All|g' /etc/apache2/apache2.conf && sed -i 's|AllowOverride None|AllowOverride All|g' /etc/apache2/sites-available/000-default.conf # buildkit |
| RUN |1 PHP_VERSION=8.4 /bin/sh -c echo "ServerName localhost" >> /etc/apache2/apache2.conf # buildkit |
| RUN |1 PHP_VERSION=8.4 /bin/sh -c rm -rf /var/log/apache2/*.log && ln -sf /dev/stdout /var/log/apache2/access.log && ln -sf /dev/stderr /var/log/apache2/error.log && ln -sf /dev/stdout /var/log/apache2/other_vhosts_access.log && sed -i 's|ErrorLog .*|ErrorLog ${APACHE_LOG_DIR}/error.log|' /etc/apache2/apache2.conf && sed -i 's|CustomLog .*|CustomLog ${APACHE_LOG_DIR}/access.log combined|' /etc/apache2/sites-available/000-default.conf # buildkit |
| RUN |1 PHP_VERSION=8.4 /bin/sh -c chmod 777 /var/log/apache2 /var/run/apache2 /var/lock/apache2 # buildkit |
| COPY docker-entrypoint.sh /usr/local/bin/ # buildkit |
| RUN |1 PHP_VERSION=8.4 /bin/sh -c chmod +x /usr/local/bin/docker-entrypoint.sh # buildkit |
| WORKDIR /var/www/html |
| EXPOSE [80/tcp] |
| ENTRYPOINT ["docker-entrypoint.sh"] |
| CMD ["apache2ctl" "-D" "FOREGROUND"] |