diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..8b387c1 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,25 @@ +.git +.gitignore +.gitattributes +.github/ +.vscode/ +.idea/ +.DS_Store +Thumbs.db +*.log +logs.conf +logs/ + +docker-compose.yml +compose.yml + +.env +.env.* +wp-config-local.php + +node_modules/ +vendor/ + +**/.cache/ +**/tmp/ +**/temp/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c8f74ea --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM wordpress:6.1.1-php8.2 + +ARG ENV_NAME + +COPY --from=composer:latest /usr/bin/composer /usr/bin/composer +COPY composer.json composer.json +COPY composer.lock composer.lock +RUN composer install + +COPY --chown=www-data:www-data ./htdocs/ /var/www/html/ +COPY --chown=www-data:www-data ./environments/docker_container/ /var/www/html/ +COPY --chown=www-data:www-data ./environments/all/ /var/www/html/ +COPY --chown=www-data:www-data ./environments/${ENV_NAME}/robots.txt /var/www/html/robots.txt + diff --git a/build/build.xml b/build/build.xml deleted file mode 100644 index fff1f17..0000000 --- a/build/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/environments/dev/wp-config-local.php b/environments/dev/wp-config-local.php deleted file mode 100644 index c55faac..0000000 --- a/environments/dev/wp-config-local.php +++ /dev/null @@ -1,21 +0,0 @@ -