Skip to content

Commit 68f0623

Browse files
committed
add Apache config
1 parent 73289c5 commit 68f0623

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

dev/docker/Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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
1318
RUN ( 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
1722
WORKDIR /app
1823

1924
RUN <<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
2726
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
2827

0 commit comments

Comments
 (0)