mirror of
https://gitlab.com/mojo42/Jirafeau.git
synced 2025-01-17 21:08:20 +01:00
1b5fa29701
closes #167 Signed-off-by: Jerome Jutteau <mojo@couak.net>
25 lines
690 B
Docker
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
|