- Now use rx3/server-mga9:1.1.2 image,

- Fix Apache root document not updated in /etc/httpd/conf/conf.d/rx3.conf.
This commit is contained in:
2024-08-28 16:24:43 +02:00
parent 9736f81016
commit 08ec413f3a
4 changed files with 20 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
ARG IMG_URL_PREFIX="rx3"
FROM ${IMG_URL_PREFIX}/server-mga9:1.1.1
FROM ${IMG_URL_PREFIX}/server-mga9:1.1.2
ARG IMG_NAME
ARG IMG_FULL_NAME
@@ -41,7 +41,10 @@ groupmod -g ${APACHE_GID} apache
\n\
chown -R apache:apache /var/log/httpd \n\
\n\
sed -i -e "s%/var/www/html%${APACHE_DOC_ROOT}%" /etc/httpd/conf/httpd.conf'
for file in /etc/httpd/conf/httpd.conf /etc/httpd/conf/conf.d/rx3.conf \n\
do \n\
sed -i -e "s%/var/www/html%${APACHE_DOC_ROOT}%" ${file} \n\
done'
#---------------------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------------------
@@ -52,12 +55,12 @@ command=/usr/sbin/httpd -DFOREGROUND'
RUN urpmi --force apache apache-mod_php php-cli php-pgsql php-mysqli php-pdo_pgsql php-pdo_mysql php-phpmailer \
&& echo -e "${HTTPD_CONF}" | sed -e 's/ *$//' > /etc/httpd/conf/conf.d/rx3.conf \
&& echo -e "${INFO_PHP}" | sed -e 's/ *$//' > /var/www/html/info.php \
&& echo -e "${HTTPD}" | sed -e 's/ *$//' > /etc/init.d/httpd \
&& echo -e "${HTTPD_CONF}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/httpd/conf/conf.d/rx3.conf \
&& echo -e "${INFO_PHP}" | sed -e "s/\`/'/g" -e 's/ *$//' > /var/www/html/info.php \
&& echo -e "${HTTPD}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/init.d/httpd \
&& chmod a+x /etc/init.d/httpd \
&& ln -s /etc/init.d/httpd /etc/rcD.d/S30httpd \
&& echo -e "${HTTPD_INI}" | sed -e 's/ *$//' > /etc/supervisord.d/httpd.ini
&& echo -e "${HTTPD_INI}" | sed -e "s/\`/'/g" -e 's/ *$//' > /etc/supervisord.d/httpd.ini
VOLUME /var/www/html