Suppression systématique du répertoire pid au lancement du conteneur

This commit is contained in:
root 2020-08-07 11:58:51 +02:00
parent e2f1e2e021
commit 7286b4dcff
2 changed files with 9 additions and 2 deletions

View File

@ -43,13 +43,14 @@ COPY httpd.conf /etc/apache2
COPY service/ /etc/service/
COPY glpi_init.sh /root/glpi_init.sh
COPY glpi.cron /var/spool/cron/crontabs/apache
COPY initrc /etc/
ADD https://github.com/glpi-project/glpi/releases/download/${GLPI_VERSION}/glpi-${GLPI_VERSION}.tgz /root/glpi-${GLPI_VERSION}.tgz
ADD https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi${FUSIONINVENTORY_VERSION}/fusioninventory-${FUSIONINVENTORY_VERSION}.tar.bz2 /root/fusioninventory-${FUSIONINVENTORY_VERSION}.tar.bz2
RUN \
chmod a+x /root/glpi_init.sh && \
chmod a+x /root/glpi_init.sh /etc/initrc && \
chmod 600 /etc/crontabs/apache && \
rm -f /var/www/html/* /root/CAS-1.3.8.tgz && \
rm -rf /tmp/* /var/tmp/*
ENTRYPOINT ["/sbin/runsvdir", "-P", "/etc/service"]
ENTRYPOINT ["/etc/initrc"]

6
alpine/initrc Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
set -e
rm -r /run/*
mkdir -p /run/apache2
exec /sbin/runsvdir -P /etc/service