#4 - Change Dockerfile to run as root user
Switched the user from UID 1000 to root (UID 0) in the Dockerfile. This change allows for operations requiring elevated privileges during container execution. Ensure any downstream implications of running as root are understood and addressed.
This commit is contained in:
		
					parent
					
						
							
								f777a7197a
							
						
					
				
			
			
				commit
				
					
						59791e36bb
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -39,7 +39,7 @@ COPY LICENSE  /LICENSE
 | 
				
			||||||
RUN chmod +x /bin/build.sh
 | 
					RUN chmod +x /bin/build.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Drop root privileges (UID 1000 exists in the base image)
 | 
					# Drop root privileges (UID 1000 exists in the base image)
 | 
				
			||||||
USER 1000
 | 
					USER 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#-----------------------------------------------------------------------------
 | 
					#-----------------------------------------------------------------------------
 | 
				
			||||||
# Runtime entrypoint
 | 
					# Runtime entrypoint
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue