]> git.p6c8.net - jirafeau_mojo42.git/blob - Dockerfile
fix input validation on required/regex setting
[jirafeau_mojo42.git] / Dockerfile
1 FROM php:8.1-fpm-alpine
2 LABEL org.opencontainers.image.authors="jerome@jutteau.fr"
3
4 # base install
5 RUN apk update && \
6 apk add lighttpd && \
7 rm -rf /var/cache/apk/* && \
8 ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
9 echo "UTC" > /etc/timezone
10
11 COPY docker/cleanup.sh /cleanup.sh
12 COPY docker/run.sh /run.sh
13 RUN chmod o=,ug=rx /cleanup.sh /run.sh
14 COPY docker/docker_config.php /docker_config.php
15
16 RUN mkdir -p /usr/local/etc/php
17 COPY docker/php.ini /usr/local/etc/php/php.ini
18 COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
19
20 # install jirafeau
21 RUN mkdir /www
22 WORKDIR /www
23 # Will ignore some files through .dockerignore
24 COPY . .
25 RUN rm -rf docker && \
26 touch /www/lib/config.local.php && \
27 chown -R $(id -u lighttpd).$(id -g www-data) /www && \
28 chmod o=,ug=rwX -R /www
29
30 CMD /run.sh
31 EXPOSE 80

patrick-canterino.de