Add /tmp/results directory with nonroot ownership
Signed-off-by: Wilson Husin <whusin@vmware.com>
This commit is contained in:
		
				
					committed by
					
						
						Wilson E. Husin
					
				
			
			
				
	
			
			
			
						parent
						
							4fafd1afef
						
					
				
				
					commit
					3d281e952c
				
			@@ -15,9 +15,13 @@
 | 
			
		||||
ARG BASEIMAGE
 | 
			
		||||
 | 
			
		||||
FROM gcr.io/k8s-staging-build-image/debian-base:v2.1.3 as base
 | 
			
		||||
RUN mkdir /tmp/results \
 | 
			
		||||
 && chown 65532 /tmp/results # Distroless nonroot UID
 | 
			
		||||
 | 
			
		||||
FROM ${BASEIMAGE}
 | 
			
		||||
 | 
			
		||||
COPY --from=base /tmp/results /tmp
 | 
			
		||||
 | 
			
		||||
# This is a dependency for `kubectl diff` tests
 | 
			
		||||
COPY --from=base /usr/bin/diff /usr/local/bin/
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user