Update PHP image, vhost config and SDLC delivery package
This commit is contained in:
@@ -2,6 +2,8 @@ FROM php:8.3-apache
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
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 \
|
||||
&& a2enmod rewrite \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -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>
|
||||
Binary file not shown.
Reference in New Issue
Block a user