Fiddling with UID-s is none of Docker's business
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone Build is passing
				
			This commit is contained in:
		| @@ -53,8 +53,8 @@ FROM $BASE_IMAGE | ||||
| # See https://go.dev/src/crypto/x509/root_linux.go for Go root CA bundle locations. | ||||
| COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||||
|  | ||||
| COPY --from=stager --chown=1001:1001 /var/dex /var/dex | ||||
| COPY --from=stager --chown=1001:1001 /etc/dex /etc/dex | ||||
| COPY --from=stager /var/dex /var/dex | ||||
| COPY --from=stager /etc/dex /etc/dex | ||||
|  | ||||
| # Copy module files for CVE scanning / dependency analysis. | ||||
| COPY --from=builder /usr/local/src/dex/go.mod /usr/local/src/dex/go.sum /usr/local/src/dex/ | ||||
| @@ -66,7 +66,5 @@ COPY --from=builder /usr/local/src/dex/web /srv/dex/web | ||||
|  | ||||
| COPY --from=gomplate /usr/local/bin/gomplate /usr/local/bin/gomplate | ||||
|  | ||||
| USER 1001:1001 | ||||
|  | ||||
| ENTRYPOINT ["/usr/local/bin/docker-entrypoint"] | ||||
| CMD ["dex", "serve", "/etc/dex/config.docker.yaml"] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user