File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11FROM php:7.4-apache
2+ WORKDIR /var/www/html
23
34RUN apt-get update && apt-get install -y \
45 libfreetype6-dev \
@@ -13,11 +14,12 @@ RUN apt-get update && apt-get install -y \
1314 locales-all \
1415 && docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
1516 && docker-php-ext-install -j$(nproc) gd pdo pdo_mysql zip mysqli intl
16- RUN a2enmod rewrite
17+ RUN a2enmod rewrite && a2enmod deflate && a2enmod filter && a2enmod expires
1718
1819# Locale
1920ENV LC_ALL C.UTF-8
2021ENV LANG C.UTF-8
2122
2223# Restart apache
23- RUN service apache2 restart
24+ RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
25+ RUN service apache2 restart
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ version: '3'
33services :
44 php :
55 build :
6- context : ' ./docker/php '
6+ context : ' .'
77 ports :
88 - 80:80
99 volumes :
You can’t perform that action at this time.
0 commit comments