diff --git a/Dockerfile.template b/Dockerfile.template index 1603eea..179b17b 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -81,6 +81,12 @@ RUN apt-get update -y \ && mv ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini \ && rm -rf /var/lib/apt/lists/* +# Disable useless Apache modules to provide safe defaults +RUN a2disconf serve-cgi-bin \ + && a2dismod status \ + && a2dismod -f alias \ + && a2dismod -f autoindex + # Get Dolibarr RUN curl -fLSs https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.tar.gz |\ tar -C /tmp -xz && \ diff --git a/images/15.0.3-php7.4/Dockerfile b/images/15.0.3-php7.4/Dockerfile index 2d3db01..fdde576 100644 --- a/images/15.0.3-php7.4/Dockerfile +++ b/images/15.0.3-php7.4/Dockerfile @@ -81,6 +81,12 @@ RUN apt-get update -y \ && mv ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini \ && rm -rf /var/lib/apt/lists/* +# Disable useless Apache modules to provide safe defaults +RUN a2disconf serve-cgi-bin \ + && a2dismod status \ + && a2dismod -f alias \ + && a2dismod -f autoindex + # Get Dolibarr RUN curl -fLSs https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.tar.gz |\ tar -C /tmp -xz && \ diff --git a/images/16.0.5-php8.1/Dockerfile b/images/16.0.5-php8.1/Dockerfile index cd77b5e..f82fb7f 100644 --- a/images/16.0.5-php8.1/Dockerfile +++ b/images/16.0.5-php8.1/Dockerfile @@ -81,6 +81,12 @@ RUN apt-get update -y \ && mv ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini \ && rm -rf /var/lib/apt/lists/* +# Disable useless Apache modules to provide safe defaults +RUN a2disconf serve-cgi-bin \ + && a2dismod status \ + && a2dismod -f alias \ + && a2dismod -f autoindex + # Get Dolibarr RUN curl -fLSs https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.tar.gz |\ tar -C /tmp -xz && \ diff --git a/images/17.0.4-php8.1/Dockerfile b/images/17.0.4-php8.1/Dockerfile index 694f8e2..4d82e7b 100644 --- a/images/17.0.4-php8.1/Dockerfile +++ b/images/17.0.4-php8.1/Dockerfile @@ -81,6 +81,12 @@ RUN apt-get update -y \ && mv ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini \ && rm -rf /var/lib/apt/lists/* +# Disable useless Apache modules to provide safe defaults +RUN a2disconf serve-cgi-bin \ + && a2dismod status \ + && a2dismod -f alias \ + && a2dismod -f autoindex + # Get Dolibarr RUN curl -fLSs https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.tar.gz |\ tar -C /tmp -xz && \ diff --git a/images/18.0.6-php8.1/Dockerfile b/images/18.0.6-php8.1/Dockerfile index 8e7104e..d6136ae 100644 --- a/images/18.0.6-php8.1/Dockerfile +++ b/images/18.0.6-php8.1/Dockerfile @@ -81,6 +81,12 @@ RUN apt-get update -y \ && mv ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini \ && rm -rf /var/lib/apt/lists/* +# Disable useless Apache modules to provide safe defaults +RUN a2disconf serve-cgi-bin \ + && a2dismod status \ + && a2dismod -f alias \ + && a2dismod -f autoindex + # Get Dolibarr RUN curl -fLSs https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.tar.gz |\ tar -C /tmp -xz && \ diff --git a/images/19.0.4-php8.2/Dockerfile b/images/19.0.4-php8.2/Dockerfile index 383f418..8c7e100 100644 --- a/images/19.0.4-php8.2/Dockerfile +++ b/images/19.0.4-php8.2/Dockerfile @@ -81,6 +81,12 @@ RUN apt-get update -y \ && mv ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini \ && rm -rf /var/lib/apt/lists/* +# Disable useless Apache modules to provide safe defaults +RUN a2disconf serve-cgi-bin \ + && a2dismod status \ + && a2dismod -f alias \ + && a2dismod -f autoindex + # Get Dolibarr RUN curl -fLSs https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.tar.gz |\ tar -C /tmp -xz && \ diff --git a/images/20.0.4-php8.2/Dockerfile b/images/20.0.4-php8.2/Dockerfile index 776d57a..b58b18a 100644 --- a/images/20.0.4-php8.2/Dockerfile +++ b/images/20.0.4-php8.2/Dockerfile @@ -81,6 +81,12 @@ RUN apt-get update -y \ && mv ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini \ && rm -rf /var/lib/apt/lists/* +# Disable useless Apache modules to provide safe defaults +RUN a2disconf serve-cgi-bin \ + && a2dismod status \ + && a2dismod -f alias \ + && a2dismod -f autoindex + # Get Dolibarr RUN curl -fLSs https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.tar.gz |\ tar -C /tmp -xz && \ diff --git a/images/21.0.0-php8.2/Dockerfile b/images/21.0.0-php8.2/Dockerfile index 2ecb457..f9d0192 100644 --- a/images/21.0.0-php8.2/Dockerfile +++ b/images/21.0.0-php8.2/Dockerfile @@ -81,6 +81,12 @@ RUN apt-get update -y \ && mv ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini \ && rm -rf /var/lib/apt/lists/* +# Disable useless Apache modules to provide safe defaults +RUN a2disconf serve-cgi-bin \ + && a2dismod status \ + && a2dismod -f alias \ + && a2dismod -f autoindex + # Get Dolibarr RUN curl -fLSs https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.tar.gz |\ tar -C /tmp -xz && \ diff --git a/images/develop/Dockerfile b/images/develop/Dockerfile index a5e91fc..d28ada0 100644 --- a/images/develop/Dockerfile +++ b/images/develop/Dockerfile @@ -81,6 +81,12 @@ RUN apt-get update -y \ && mv ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini \ && rm -rf /var/lib/apt/lists/* +# Disable useless Apache modules to provide safe defaults +RUN a2disconf serve-cgi-bin \ + && a2dismod status \ + && a2dismod -f alias \ + && a2dismod -f autoindex + # Get Dolibarr RUN curl -fLSs https://github.com/Dolibarr/dolibarr/archive/${DOLI_VERSION}.tar.gz |\ tar -C /tmp -xz && \