1 FROM php:8.1-fpm-alpine
2 LABEL org.opencontainers.image.authors="jerome@jutteau.fr"
6 apk add lighttpd openldap-dev && \
7 docker-php-ext-install ldap && \
8 docker-php-ext-enable ldap && \
9 rm -rf /var/cache/apk/* && \
10 ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
11 echo "UTC" > /etc/timezone
13 COPY docker/cleanup.sh /cleanup.sh
14 COPY docker/run.sh /run.sh
15 RUN chmod o=,ug=rx /cleanup.sh /run.sh
16 COPY docker/docker_config.php /docker_config.php
18 RUN mkdir -p /usr/local/etc/php
19 COPY docker/php.ini /usr/local/etc/php/php.ini
20 COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
25 # Will ignore some files through .dockerignore
27 RUN rm -rf docker && \
28 touch /www/lib/config.local.php && \
29 chown -R $(id -u lighttpd).$(id -g www-data) /www && \
30 chmod o=,ug=rwX -R /www