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