]> git.p6c8.net - jirafeau.git/blob - Dockerfile
[TASK] Explain how to migrate to Jirafeau 4.0.0
[jirafeau.git] / Dockerfile
1 FROM php:7.3-fpm-alpine
2 MAINTAINER "Jérôme Jutteau <mojo@jirafeau.net>"
3
4 RUN apk update && \
5 apk add lighttpd git && \
6 ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
7 echo "UTC" > /etc/timezone && \
8 mkdir -p /usr/local/etc/php / && \
9 mkdir /www
10
11 WORKDIR /www
12
13 COPY .git .git
14 RUN git reset --hard && rm -rf .git .gitignore .gitlab-ci.yml CONTRIBUTING.md Dockerfile README.md
15 COPY docker/php.ini /usr/local/etc/php/php.ini
16 COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
17
18 RUN chown -R www-data. . && \
19 chmod o=,ug=rwX -R . && \
20 apk del git && \
21 rm -rf /var/cache/apk/*
22
23 CMD php-fpm -D && lighttpd -D -f /etc/lighttpd/lighttpd.conf
24 EXPOSE 80

patrick-canterino.de