KazV2/dockers/paheko/Dockerfile

36 lines
1.6 KiB
Docker
Raw Normal View History

2024-08-13 15:46:57 +02:00
FROM paheko/paheko:1.3.11
2024-06-03 18:43:35 +02:00
2024-07-11 20:34:21 +02:00
#ENV PAHEKO_DIR /usr/share/paheko
ENV PAHEKO_DIR /var/www/paheko
2024-06-03 18:43:35 +02:00
COPY dockers/paheko/config/factory_cron.sh ${PAHEKO_DIR}/
COPY dockers/paheko/config/factory_cron_emails.sh ${PAHEKO_DIR}/
COPY dockers/paheko/config/setupWebRights.sh ${PAHEKO_DIR}/
RUN mkdir ${PAHEKO_DIR}/users
#Plugin facturation (le seul qui ne fasse pas parti de la distribution de base
COPY "dockers/paheko/config/facturation.tar.gz" ${PAHEKO_DIR}/data/plugins/
RUN mkdir ${PAHEKO_DIR}/data/plugins/facturation && tar zxvf ${PAHEKO_DIR}/data/plugins/facturation.tar.gz -C ${PAHEKO_DIR}/data/plugins/facturation && rm ${PAHEKO_DIR}/data/plugins/facturation.tar.gz
#install cron pour factory_cron.sh
2024-08-08 15:55:19 +02:00
RUN apt-get update && apt-get install cron joe rsyslog -y
2024-06-03 18:43:35 +02:00
RUN sed -i '/imklog/s/^/#/' /etc/rsyslog.conf
2024-09-21 13:12:45 +02:00
RUN echo "0 1 * * * cd ${PAHEKO_DIR} && ${PAHEKO_DIR}/factory_cron.sh 1> /dev/null 2> /dev/null" >> /var/spool/cron/crontabs/root
RUN echo "* * * * * cd ${PAHEKO_DIR} && ${PAHEKO_DIR}/factory_cron_emails.sh 1> /dev/null 2> /dev/null" >> /var/spool/cron/crontabs/root
2024-06-03 18:43:35 +02:00
RUN chmod 600 /var/spool/cron/crontabs/root
RUN sed -i "/exec/i\service cron start\n" /usr/local/bin/docker-php-entrypoint
RUN ln -sf /usr/local/bin/php /usr/bin/
2024-07-11 20:34:21 +02:00
#outil pour debugger dans le docker
RUN apt-get install -y inetutils-ping net-tools
2024-06-03 18:43:35 +02:00
# Set owner web server
RUN chown -R www-data: ${PAHEKO_DIR}
#fab le 03/02/2023: pour avoir un php.ini de prod avec zend.assertions = -1
RUN cp "/usr/local/etc/php/php.ini-production" "/usr/local/etc/php/php.ini"
2024-07-11 20:34:21 +02:00
HEALTHCHECK --timeout=10s CMD exit 0
2024-06-03 18:43:35 +02:00
EXPOSE 80
2024-07-11 20:34:21 +02:00
VOLUME [ "${PAHEKO_DIR}/users" ]