]> git.p6c8.net - jirafeau_project.git/blob - Dockerfile
[FEATURE] add LDAP authentication support for uploaders
[jirafeau_project.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 openldap-dev && \
7 docker-php-ext-install ldap && \
8 docker-php-ext-enable ldap && \
9 rm -rf /var/cache/apk/* && \
10 ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
11 echo "UTC" > /etc/timezone
12
13 COPY docker/cleanup.sh /cleanup.sh
14 COPY docker/run.sh /run.sh
15 RUN chmod o=,ug=rx /cleanup.sh /run.sh
16 COPY docker/docker_config.php /docker_config.php
17
18 RUN mkdir -p /usr/local/etc/php
19 COPY docker/php.ini /usr/local/etc/php/php.ini
20 COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
21
22 # install jirafeau
23 RUN mkdir /www
24 WORKDIR /www
25 # Will ignore some files through .dockerignore
26 COPY . .
27 RUN rm -rf docker && \
28 touch /www/lib/config.local.php && \
29 chown -R $(id -u lighttpd).$(id -g www-data) /www && \
30 chmod o=,ug=rwX -R /www
31
32 CMD /run.sh
33 EXPOSE 80

patrick-canterino.de