Skip to content

Commit 2163b44

Browse files
committed
add mod rewrite to fix css/js aggr
1 parent 20dbad1 commit 2163b44

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,21 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
2323
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
2424

2525
# Configure PHP, make memory_limit and upload_max_filesize match Pantheon
26-
RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
27-
RUN sed -i 's/memory_limit\s*=.*/memory_limit=2048M/g' /usr/local/etc/php/php.ini
28-
RUN sed -i 's/post_max_size\s*=.*/post_max_size=100M/g' /usr/local/etc/php/php.ini
29-
RUN sed -i 's/upload_max_filesize\s*=.*/upload_max_filesize=100M/g' /usr/local/etc/php/php.ini
30-
RUN sed -i 's/variables_order\s*=.*/variables_order="EGPCS"/g' /usr/local/etc/php/php.ini
26+
RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini \
27+
&& sed -i 's/memory_limit\s*=.*/memory_limit=2048M/g' /usr/local/etc/php/php.ini \
28+
&& sed -i 's/post_max_size\s*=.*/post_max_size=100M/g' /usr/local/etc/php/php.ini \
29+
&& sed -i 's/upload_max_filesize\s*=.*/upload_max_filesize=100M/g' /usr/local/etc/php/php.ini \
30+
&& sed -i 's/variables_order\s*=.*/variables_order="EGPCS"/g' /usr/local/etc/php/php.ini
3131

3232
# Stop xdebug from spamming the console
3333
RUN echo 'xdebug.log_level = 0' >> /usr/local/etc/php/conf.d/xdebug.ini
3434

3535
# Only use higher port for Apache, so that port forwarding is more consistent.
3636
RUN sed -i 's/Listen\s*80$/# Listen 80/' /etc/apache2/ports.conf
3737

38+
# Enable Apache modules
39+
RUN a2enmod expires headers rewrite
40+
3841
# Install terminus
3942
RUN curl -L https://github.com/pantheon-systems/terminus/releases/latest/download/terminus.phar --output /usr/local/bin/terminus \
4043
&& chmod +x /usr/local/bin/terminus \

0 commit comments

Comments
 (0)