Add Dockerfile

This commit is contained in:
colin 2024-07-03 18:12:32 +00:00
parent a39de5abc7
commit 902e58dc56
1 changed files with 19 additions and 0 deletions

19
Dockerfile Normal file
View File

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