1 FROM php:7.3-fpm-alpine
2 MAINTAINER "Jérôme Jutteau <mojo@jirafeau.net>"
7 ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
8 echo "UTC" > /etc/timezone
16 git reset --hard && rm -rf .git .gitignore .gitlab-ci.yml CONTRIBUTING.md Dockerfile README.md && \
18 chown -R $USER_UID /www && \
19 chmod o=,ug=rwX -R /www && \
20 chmod +x docker/cleanup
24 RUN apk add lighttpd php7-mcrypt && \
25 echo "extension=/usr/lib/php7/modules/mcrypt.so" > /usr/local/etc/php/conf.d/mcrypt.ini && \
26 chown -R $USER_UID /var/log/lighttpd && \
27 chmod oug=rwX /run && \
28 mkdir -p /usr/local/etc/php
29 COPY docker/php.ini /usr/local/etc/php/php.ini
30 COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
34 RUN rm -rf /var/cache/apk/*
37 CMD /www/docker/cleanup & php-fpm -D && lighttpd -D -f /etc/lighttpd/lighttpd.conf