Update PHP image, vhost config and SDLC delivery package

This commit is contained in:
Thanakorn
2026-09-14 12:48:12 +07:00
parent 6c166aa88c
commit e5cbce6022
3 changed files with 25 additions and 0 deletions
+2
View File
@@ -2,6 +2,8 @@ FROM php:8.3-apache
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
libzip-dev libicu-dev libonig-dev default-mysql-client gettext-base \ libzip-dev libicu-dev libonig-dev default-mysql-client gettext-base \
libpng-dev libjpeg-dev libfreetype6-dev \
&& docker-php-ext-configure gd --with-jpeg --with-freetype \
&& docker-php-ext-install pdo_mysql mysqli mbstring gd zip intl sockets exif opcache \ && docker-php-ext-install pdo_mysql mysqli mbstring gd zip intl sockets exif opcache \
&& a2enmod rewrite \ && a2enmod rewrite \
&& apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get clean && rm -rf /var/lib/apt/lists/*
+23
View File
@@ -0,0 +1,23 @@
# Serves the app at the vhost root instead of under /wms-app/.
# Mounted over the image's default site by docker-compose.override.yml.
<VirtualHost *:80>
DocumentRoot /var/www/html/wms-app
<Directory /var/www/html/wms-app>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# Never serve deploy artefacts or seeders over HTTP.
<FilesMatch "^(\.env|docker-compose(\.override)?\.yml|.*\.log|setup\.php|demo_seed.*\.php|finish-deploy\.sh)$">
Require all denied
</FilesMatch>
# nginx terminates TLS upstream; let PHP know the real scheme so the app
# does not emit http:// URLs into an https page.
SetEnvIf X-Forwarded-Proto "^https$" HTTPS=on
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
BIN
View File
Binary file not shown.