don't set APACHE_DOCUMENT_ROOT env variable (#23)

This commit is contained in:
Alexis Saettler 2020-08-26 08:13:14 +02:00 committed by GitHub
parent 1988b4de41
commit 001f54d0fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 7 deletions

View File

@ -9,8 +9,7 @@ RUN set -ex; \
} > $APACHE_CONFDIR/conf-available/remoteip.conf; \
a2enconf remoteip
ENV APACHE_DOCUMENT_ROOT /var/www/html/public
RUN set -ex; \
\
APACHE_DOCUMENT_ROOT=/var/www/html/public; \
sed -ri -e "s!/var/www/html!${APACHE_DOCUMENT_ROOT}!g" $APACHE_CONFDIR/sites-available/*.conf; \
sed -ri -e "s!/var/www/!${APACHE_DOCUMENT_ROOT}!g" $APACHE_CONFDIR/apache2.conf $APACHE_CONFDIR/conf-available/*.conf

View File

@ -55,7 +55,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.18; \
pecl install memcached-3.1.5; \
pecl install redis-5.3.0; \
pecl install redis-5.3.1; \
\
docker-php-ext-enable \
apcu \
@ -119,9 +119,8 @@ RUN set -ex; \
} > $APACHE_CONFDIR/conf-available/remoteip.conf; \
a2enconf remoteip
ENV APACHE_DOCUMENT_ROOT /var/www/html/public
RUN set -ex; \
\
APACHE_DOCUMENT_ROOT=/var/www/html/public; \
sed -ri -e "s!/var/www/html!${APACHE_DOCUMENT_ROOT}!g" $APACHE_CONFDIR/sites-available/*.conf; \
sed -ri -e "s!/var/www/!${APACHE_DOCUMENT_ROOT}!g" $APACHE_CONFDIR/apache2.conf $APACHE_CONFDIR/conf-available/*.conf

View File

@ -53,7 +53,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.18; \
pecl install memcached-3.1.5; \
pecl install redis-5.3.0; \
pecl install redis-5.3.1; \
\
docker-php-ext-enable \
apcu \

View File

@ -55,7 +55,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.18; \
pecl install memcached-3.1.5; \
pecl install redis-5.3.0; \
pecl install redis-5.3.1; \
\
docker-php-ext-enable \
apcu \