2019-11-04 16:20:31 +01:00
|
|
|
FROM php:7.3-fpm-alpine
|
2017-09-04 21:31:42 +02:00
|
|
|
MAINTAINER "Jérôme Jutteau <mojo@jirafeau.net>"
|
|
|
|
|
|
|
|
RUN apk update && \
|
|
|
|
apk add lighttpd git && \
|
|
|
|
ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
|
|
|
|
echo "UTC" > /etc/timezone && \
|
|
|
|
mkdir -p /usr/local/etc/php / && \
|
|
|
|
mkdir /www
|
|
|
|
|
|
|
|
WORKDIR /www
|
|
|
|
|
2018-04-16 23:37:00 +02:00
|
|
|
COPY .git .git
|
|
|
|
RUN git reset --hard && rm -rf .git .gitignore .gitlab-ci.yml CONTRIBUTING.md Dockerfile README.md
|
2017-09-04 21:31:42 +02:00
|
|
|
COPY docker/php.ini /usr/local/etc/php/php.ini
|
|
|
|
COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
|
|
|
|
|
|
|
|
RUN chown -R www-data. . && \
|
|
|
|
chmod o=,ug=rwX -R . && \
|
|
|
|
apk del git && \
|
|
|
|
rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
CMD php-fpm -D && lighttpd -D -f /etc/lighttpd/lighttpd.conf
|
|
|
|
EXPOSE 80
|