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
10 RUN apk add lighttpd git
16 RUN git reset --hard && rm -rf docker install.php .git .gitignore .gitlab-ci.yml CONTRIBUTING.md Dockerfile README.md
17 RUN touch /www/lib/config.local.php
18 RUN chown -R $(id -u lighttpd).$(id -g www-data) /www
19 RUN chmod o=,ug=rwX -R /www
21 COPY docker/cleanup.sh /cleanup.sh
22 COPY docker/run.sh /run.sh
23 RUN chmod o=,ug=rx /cleanup.sh /run.sh
24 COPY docker/docker_config.php /docker_config.php
26 RUN mkdir -p /usr/local/etc/php
27 COPY docker/php.ini /usr/local/etc/php/php.ini
28 COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
32 RUN rm -rf /var/cache/apk/*