Moved Dockerfile from devops repo here, removed redundant ant build config, removed unused config, added dockerignore

This commit is contained in:
2026-02-09 12:40:32 +01:00
parent 329f68abb7
commit c948ba1de3
4 changed files with 39 additions and 80 deletions

14
Dockerfile Normal file
View File

@@ -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