1 FROM php:8.1-fpm-alpine
2 LABEL org.opencontainers.image.authors="jerome@jutteau.fr"
11 ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
12 echo "UTC" > /etc/timezone
20 git reset --hard && rm -rf docker install.php .git .gitignore .gitlab-ci.yml CONTRIBUTING.md Dockerfile README.md && \
22 touch /www/lib/config.local.php && \
23 chown -R $USER_ID.$GROUP_ID /www && \
24 chmod o=,ug=rwX -R /www
26 COPY docker/cleanup.sh /cleanup.sh
27 COPY docker/run.sh /run.sh
28 RUN chmod o=,ug=rx /cleanup.sh /run.sh
29 COPY docker/docker_config.php /docker_config.php
32 RUN apk add lighttpd && \
33 chown -R $USER_ID /var/log/lighttpd && \
34 mkdir -p /usr/local/etc/php
35 COPY docker/php.ini /usr/local/etc/php/php.ini
36 COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
39 RUN rm -rf /var/cache/apk/*