enable mod_rewrite

pull/1/head
chris 2020-05-29 13:12:26 +02:00
parent eea849fffb
commit cadf7303a8
1 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,9 @@ RUN set -xe;\
FROM reg.zknt.org/zknt/debian-php FROM reg.zknt.org/zknt/debian-php
COPY --from=builder /var/www /var/www COPY --from=builder /var/www /var/www
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
RUN apt-install php-curl php-zip php-bcmath php-intl php-mbstring php-xml optipng pngquant jpegoptim gifsicle ffmpeg php-imagick php-gd php-redis php-mysql RUN apt-install php-curl php-zip php-bcmath php-intl php-mbstring php-xml optipng pngquant jpegoptim gifsicle ffmpeg php-imagick php-gd php-redis php-mysql &&\
a2enmod rewrite &&\
sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf
WORKDIR /var/www
VOLUME /var/www/storage /var/www/bootstrap VOLUME /var/www/storage /var/www/bootstrap
ENTRYPOINT /entrypoint.sh ENTRYPOINT /entrypoint.sh