Additional fixes for php.ini

This commit is contained in:
Harish Karumuthil 2024-10-22 12:29:44 +05:30
parent c99f6cea37
commit 8424f476b4
2 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,8 @@ RUN apt-get install -y --no-install-recommends procps iproute2 vim openssh-serve
rm /var/log/apache2/* ;\
systemctl enable apache2
RUN sed -i 's/#Port 22/Port 2022/' /etc/ssh/sshd_config
RUN cp "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"; \
sed -i 's/#Port 22/Port 2022/' /etc/ssh/sshd_config
EXPOSE 80/tcp
EXPOSE 2022/tcp

View File

@ -8,6 +8,7 @@ services:
volumes:
- srvroot:/var/www
- apacheconf:/etc/apache2
- phpconf:/usr/local/etc/php
- type: bind
source: ./authorized_keys
target: /root/authorized_keys