]> git.p6c8.net - jirafeau.git/blob - Dockerfile
[FEATURE] Support light/dark mode
[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 git
11
12 # install jirafeau
13 RUN mkdir /www
14 WORKDIR /www
15 COPY .git .git
16 RUN git reset --hard && rm -rf docker install.php .git .gitignore .gitlab-ci.yml CONTRIBUTING.md Dockerfile README.md
17 RUN touch /www/lib/config.local.php
18 RUN chown -R $(id -u lighttpd).$(id -g www-data) /www
19 RUN chmod o=,ug=rwX -R /www
20
21 COPY docker/cleanup.sh /cleanup.sh
22 COPY docker/run.sh /run.sh
23 RUN chmod o=,ug=rx /cleanup.sh /run.sh
24 COPY docker/docker_config.php /docker_config.php
25
26 RUN mkdir -p /usr/local/etc/php
27 COPY docker/php.ini /usr/local/etc/php/php.ini
28 COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
29
30 # cleanup
31 RUN apk del git
32 RUN rm -rf /var/cache/apk/*
33
34 CMD /run.sh
35 EXPOSE 80

patrick-canterino.de