Jirafeau/Dockerfile
Jerome Jutteau 1b5fa29701 [BUGFIX] avoid adding config.local.php in docker builds
closes #167

Signed-off-by: Jerome Jutteau <mojo@couak.net>
2018-05-03 19:55:37 +02:00

25 lines
690 B
Docker

FROM php:7.1.1-fpm-alpine
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
COPY .git .git
RUN git reset --hard && rm -rf .git .gitignore .gitlab-ci.yml CONTRIBUTING.md Dockerfile README.md
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