Suppression systématique du répertoire pid au lancement du conteneur
This commit is contained in:
parent
e2f1e2e021
commit
7286b4dcff
@ -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
6
alpine/initrc
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
rm -r /run/*
|
||||
mkdir -p /run/apache2
|
||||
exec /sbin/runsvdir -P /etc/service
|
Loading…
Reference in New Issue
Block a user