]> git.p6c8.net - jirafeau.git/blob - Dockerfile
Fixed every error detected by php-cs-fixer (except the single_space_around_construct...
[jirafeau.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 --chmod=550 docker/cleanup.sh docker/run.sh /
12 COPY --chmod=640 docker/docker_config.php /docker_config.php
13
14 COPY docker/php.ini /usr/local/etc/php/php.ini
15 COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
16
17 # Install Jirafeau
18 WORKDIR /www
19
20 RUN --mount=type=bind,source=.,target=/mnt \
21 cp -r /mnt/* /www/ && \
22 rm -rf /www/docker && \
23 touch /www/lib/config.local.php && \
24 chown -R $(id -u lighttpd).$(id -g www-data) /www && \
25 chmod 770 /www
26
27 CMD ["/run.sh"]
28 EXPOSE 80

patrick-canterino.de