Renamed source directory, changed dockerfile for running docker image according to the official documentation

This commit is contained in:
2026-03-06 12:32:44 +01:00
parent 3cd2c3d0a6
commit 460fdb828e
409 changed files with 36 additions and 34 deletions

54
.gitignore vendored
View File

@@ -1,36 +1,36 @@
!html/
!wordpress/
html/*
!html/wp-content/
!html/wp-config.php
!html/wp-config-local-sample.php
!html/sitemap.xml
wordpress/*
!wordpress/wp-content/
!wordpress/wp-config.php
!wordpress/wp-config-local-sample.php
!wordpress/sitemap.xml
html/wp-content/*
!html/wp-content/mu-plugins/
!html/wp-content/plugins/
!html/wp-content/themes/
!html/wp-content/index.php
!html/wp-content/sunrise.php
!html/wp-content/uploads/
!html/wp-content/uploads/.gitkeep
wordpress/wp-content/*
!wordpress/wp-content/mu-plugins/
!wordpress/wp-content/plugins/
!wordpress/wp-content/themes/
!wordpress/wp-content/index.php
!wordpress/wp-content/sunrise.php
!wordpress/wp-content/uploads/
!wordpress/wp-content/uploads/.gitkeep
html/wp-content/mu-plugins/*
!html/wp-content/mu-plugins/domain_mapping.php
wordpress/wp-content/mu-plugins/*
!wordpress/wp-content/mu-plugins/domain_mapping.php
html/wp-content/plugins/*
!html/wp-content/plugins/index.php
!html/wp-content/plugins/faq
!html/wp-content/plugins/disable-image-threshold
wordpress/wp-content/plugins/*
!wordpress/wp-content/plugins/index.php
!wordpress/wp-content/plugins/faq
!wordpress/wp-content/plugins/disable-image-threshold
html/wp-content/themes/*
!html/wp-content/themes/lawcarta
!html/wp-content/themes/livecarta
!html/wp-content/themes/redesign
!html/wp-content/themes/index.php
wordpress/wp-content/themes/*
!wordpress/wp-content/themes/lawcarta
!wordpress/wp-content/themes/livecarta
!wordpress/wp-content/themes/redesign
!wordpress/wp-content/themes/index.php
!html/wp-content/plugins/wp-rest-api-event
!html/wp-content/plugins/subscribe-to-lc
!wordpress/wp-content/plugins/wp-rest-api-event
!wordpress/wp-content/plugins/subscribe-to-lc
vendor/

View File

@@ -6,10 +6,12 @@ RUN composer install --no-dev --optimize-autoloader
FROM wordpress:6.9.1-php8.5 AS app
ARG ENV_NAME
USER www-data:www-data
WORKDIR /var/www/html
WORKDIR /usr/src/wordpress
RUN set -eux; \
find /etc/apache2 -name '*.conf' -type f -exec sed -ri -e "s!/var/www/html!$PWD!g" -e "s!Directory /var/www/!Directory $PWD!g" '{}' +; \
cp -s wp-config-docker.php wp-config.php
COPY --from=setup --chown=www-data:www-data /src/html ./
COPY --from=setup --chown=www-data:www-data /src/wordpress ./
COPY --from=setup --chown=www-data:www-data /src/environments/docker_container/ ./
COPY --from=setup --chown=www-data:www-data /src/environments/all/ ./
COPY --from=setup --chown=www-data:www-data /src/environments/${ENV_NAME}/robots.txt ./robots.txt

View File

@@ -28,16 +28,16 @@
],
"extra": {
"installer-paths": {
"html/wp-content/plugins/{$name}/": [
"wordpress/wp-content/plugins/{$name}/": [
"type:wordpress-plugin"
],
"html/wp-content/themes/{$name}/": [
"wordpress/wp-content/themes/{$name}/": [
"type:wordpress-theme"
]
}
},
"config": {
"vendor-dir": "html/wp-content/vendor",
"vendor-dir": "wordpress/wp-content/vendor",
"allow-plugins": {
"composer/installers": true
}

2
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "e9c0357b64603a3920bcdc47ab19f488",
"content-hash": "760aedbc222287d25e26e02e6db73f63",
"packages": [
{
"name": "aws/aws-crt-php",

View File

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

View File

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 228 KiB

After

Width:  |  Height:  |  Size: 228 KiB

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Some files were not shown because too many files have changed in this diff Show More