1 FROM php:7.3-fpm-alpine
2 MAINTAINER "Jérôme Jutteau <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 .git .gitignore .gitlab-ci.yml CONTRIBUTING.md Dockerfile README.md && \
22 touch /www/lib/config.local.php && \
23 chown -R $USER_UID.$GROUP_UID /www && \
24 chmod o=,ug=rwX -R /www
26 COPY docker/cleanup.sh /cleanup.sh
27 RUN chmod o=,ug=rx /cleanup.sh
28 COPY docker/run.sh /run.sh
29 RUN chmod o=,ug=rx /run.sh
30 COPY docker/docker_config.php /docker_config.php
33 RUN apk add lighttpd php7-mcrypt && \
34 echo "extension=/usr/lib/php7/modules/mcrypt.so" > /usr/local/etc/php/conf.d/mcrypt.ini && \
35 chown -R $USER_UID /var/log/lighttpd && \
36 chmod oug=rwX /run && \
37 mkdir -p /usr/local/etc/php
38 COPY docker/php.ini /usr/local/etc/php/php.ini
39 COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
43 RUN rm -rf /var/cache/apk/*