From ee8d60140a6de855d3c143dd824cbbf23bb9c087 Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 3 Jul 2024 18:40:26 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fbb1e21..67a320f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,16 +4,19 @@ FROM composer:latest AS build WORKDIR /app # Copy the composer.json and install dependencies -COPY composer.json composer.lock /app/ +COPY composer.json /app/ RUN composer install # Copy the plugin files COPY wp-content/plugins/simple-jaeger /app/wp-content/plugins/simple-jaeger -# Final image to copy the built files +# Final image to run WordPress FROM wordpress:latest WORKDIR /var/www/html # Copy the plugin files from the build stage COPY --from=build /app/wp-content/plugins/simple-jaeger /var/www/html/wp-content/plugins/simple-jaeger + +# Set correct permissions for the plugin files (optional) +RUN chown -R www-data:www-data /var/www/html/wp-content/plugins/simple-jaeger