From ab2f5ac73d812716b3f280306d7227bd11e2d48a Mon Sep 17 00:00:00 2001 From: DiouxX Date: Tue, 9 Aug 2016 19:54:41 +0200 Subject: [PATCH] Add VOLUME --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0f6f24d..a467620 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,6 @@ RUN wget -P ${FOLDER_WEB} ${SRC_GLPI} \ #Modification du fichier RUN echo "\n\tDocumentRoot /var/www/html/glpi\n\n\t\n\t\tAllowOverride All\n\t\tOrder Allow,Deny\n\t\tAllow from all\n\t\n\n\tErrorLog /var/log/apache2/error-glpi.log\n\tLogLevel warn\n\tCustomLog /var/log/apache2/access-glpi.log combined\n" > /etc/apache2/sites-available/000-default.conf -#RUN sed -i -- 's/\/var\/www\/html/\/var\/www\/html\/glpi/g' /etc/apache2/sites-available/000-default.conf #Activation du module rewrite d'apache RUN a2enmod rewrite && service apache2 restart @@ -44,5 +43,8 @@ RUN a2enmod rewrite && service apache2 restart #Exposition des ports EXPOSE 80 443 -#Lancement du service apache a l'initiamisation du conteneur +#Partage du volume +VOLUME /var/www/html/glpi + +#Lancement du service apache a l'initialisation du conteneur ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]