mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 23:30:47 +00:00 
			
		
		
		
	Extract the perf binary from the kernel package and create a new perf package for each kernel. The perf package uses the same tags as the kernel package and only contains the perf binary under /usr/bin. The perf package can be added to the init section or included as a stage in a multi-stage build for other packages. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
		
			
				
	
	
		
			11 lines
		
	
	
		
			221 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			221 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| # This Dockerfile extracts the perf utility from a kernel package and
 | |
| # places it into a scratch image
 | |
| ARG IMAGE
 | |
| FROM ${IMAGE} AS kernel
 | |
| 
 | |
| FROM scratch
 | |
| ENTRYPOINT []
 | |
| CMD []
 | |
| WORKDIR /
 | |
| COPY --from=kernel /perf /usr/bin/perf
 |