From f5dca6af67fc18f06b6d5b3e0fc360a9e4ebb5b4 Mon Sep 17 00:00:00 2001 From: Nicolas MORIN Date: Thu, 20 May 2021 19:03:24 +0200 Subject: [PATCH] Modification du Dockerfile pour partir d'une image Debian --- Dockerfile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9a294d0..a657000 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,11 @@ -FROM php:7.4-apache -RUN apt update && apt install -y --no-install-recommends sqlite3 git && apt clean && rm -rf /var/lib/apt/lists/* -RUN mkdir -p /etc/postfix/ +FROM debian:testing +RUN apt update -y && apt install -y --no-install-recommends apache2 php libapache2-mod-php sqlite3 && \ +apt clean && \ +rm -rf /var/lib/apt/lists/* && \ +mkdir -p /etc/postfix/ && \ +rm /var/www/html/index.html COPY . /var/www/html/ -RUN chmod +x /var/www/html/outils/genenv.sh -RUN /var/www/html/outils/genenv.sh +RUN chmod +x /var/www/html/outils/genenv.sh && \ +/var/www/html/outils/genenv.sh + +CMD /usr/sbin/apachectl -D FOREGROUND