Update Dockerfile

This commit is contained in:
colin 2024-07-03 18:40:26 +00:00
parent 1880172e59
commit ee8d60140a
1 changed files with 5 additions and 2 deletions

View File

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