Changes to docker image
- Remove .git and utils folders from container.
- Set memory limit to 128M and make sure sessions last 1 week.
Change-Id: I3ab9e12a1948270045ec68bf0727bdc5862385ff
diff --git a/Dockerfile b/Dockerfile
index 1de3b54..2a32252 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,8 @@
FROM php:8.1-apache
RUN docker-php-ext-install mysqli
RUN docker-php-ext-enable mysqli
+RUN cd /usr/local/etc/php/conf.d/ && \
+ echo 'memory_limit = 128M' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \
+ echo 'session.gc_maxlifetime = 604800' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \
+ echo 'session.cookie_lifetime = 604800' >> /usr/local/etc/php/conf.d/docker-php-custom.ini
COPY ./ /var/www/html/