From 902e58dc56244253edb2fffe8f938782d0813435 Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 3 Jul 2024 18:12:32 +0000 Subject: [PATCH] Add Dockerfile --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fbb1e21 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# Use the official Composer image to build dependencies +FROM composer:latest AS build + +WORKDIR /app + +# Copy the composer.json and install dependencies +COPY composer.json composer.lock /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 +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