Added Dockerfile and jenkins pipeline

This commit is contained in:
2025-09-16 17:04:41 +02:00
parent 6e6c9aa3af
commit 02d86266df
2 changed files with 65 additions and 0 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
# Base image
FROM composer:2.6.4 AS base
COPY . /src
WORKDIR /src
RUN composer install --no-dev --optimize-autoloader
FROM wordpress:6.1.1-php8.2 AS livecarta_wp
ARG ENV_NAME
COPY --from=base /src/htdocs /var/www/html
COPY --from=base /src/environments/docker_container/ /var/www/html/
COPY --from=base /src/environments/all/ /var/www/html/
COPY --from=base /src/environments/${ENV_NAME}/robots.txt /var/www/html/robots.txt
RUN chown -R www-data:www-data /var/www/html/