mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	fix(docker/rootless): missing bash under alpine
This commit is contained in:
		
							parent
							
								
									c46d5cc9e9
								
							
						
					
					
						commit
						061e238a8e
					
				@ -18,6 +18,7 @@ ENV GID=${GID}
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Install runtime dependencies and create user with specific UID/GID
 | 
					# Install runtime dependencies and create user with specific UID/GID
 | 
				
			||||||
RUN apk add --no-cache dumb-init && \
 | 
					RUN apk add --no-cache dumb-init && \
 | 
				
			||||||
 | 
					    apk add --no-cache bash && \
 | 
				
			||||||
    # Alpine uses addgroup/adduser (from busybox) instead of groupadd/useradd
 | 
					    # Alpine uses addgroup/adduser (from busybox) instead of groupadd/useradd
 | 
				
			||||||
    addgroup -g ${GID} ${USER} && \
 | 
					    addgroup -g ${GID} ${USER} && \
 | 
				
			||||||
    adduser -u ${UID} -G ${USER} -s /bin/sh -D -h /home/${USER} ${USER}
 | 
					    adduser -u ${UID} -G ${USER} -s /bin/sh -D -h /home/${USER} ${USER}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user