File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ RUN apt-get update && \
99 rm -fr /var/cache/apk/* && \
1010 rm -fr /tmp/*
1111
12+ # Configure apach
13+ RUN a2enmod rewrite && \
14+ sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf && \
15+ sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
16+
1217# install php extensions
1318RUN ( curl -sSLf https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - || echo 'return 1' ) | sh -s \
1419 gd ldap pdo_mysql xdebug zip
@@ -17,12 +22,6 @@ ENV APACHE_DOCUMENT_ROOT /app/public
1722WORKDIR /app
1823
1924RUN <<EOR
20-
21- # Configure apach
22- a2enmod rewrite
23- sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
24- sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
25-
2625# Install composer
2726curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
2827
You can’t perform that action at this time.
0 commit comments