]> git.p6c8.net - jirafeau_project.git/blob - Dockerfile
[BUFIX] fix bash script to send files
[jirafeau_project.git] / Dockerfile
1 FROM php:7.3-fpm-alpine
2 MAINTAINER "Jérôme Jutteau <jerome@jutteau.fr>"
3 ARG USER_UID=2009
4
5 # install base
6 RUN apk update && \
7 ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
8 echo "UTC" > /etc/timezone
9
10
11 # install jirafou
12 RUN mkdir /www
13 WORKDIR /www
14 COPY .git .git
15 RUN apk add git && \
16 git reset --hard && rm -rf .git .gitignore .gitlab-ci.yml CONTRIBUTING.md Dockerfile README.md && \
17 apk del git && \
18 chown -R $USER_UID /www && \
19 chmod o=,ug=rwX -R /www && \
20 chmod +x docker/cleanup
21
22
23 # install lighttpd
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
31
32
33 # cleanup
34 RUN rm -rf /var/cache/apk/*
35
36
37 CMD /www/docker/cleanup & php-fpm -D && lighttpd -D -f /etc/lighttpd/lighttpd.conf
38 EXPOSE 80

patrick-canterino.de