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

patrick-canterino.de