File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
3333RUN 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.
3636RUN 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
3942RUN 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 \
You can’t perform that action at this time.
0 commit comments