20 lines
		
	
	
		
			524 B
		
	
	
	
		
			Docker
		
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			524 B
		
	
	
	
		
			Docker
		
	
	
	
| # 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 /app/
 | |
| RUN composer install
 | |
| 
 | |
| # Copy the plugin files
 | |
| COPY wp-content/plugins/simple-jaeger /app/wp-content/plugins/simple-jaeger
 | |
| 
 | |
| # 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
 |