Merge pull request #11877 from iMichka/revert3
Dockerfile: revert the revert of #11818 and #11819
This commit is contained in:
		
						commit
						6f418610ca
					
				
							
								
								
									
										27
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								Dockerfile
									
									
									
									
									
								
							@ -37,17 +37,22 @@ COPY --chown=linuxbrew:linuxbrew . /home/linuxbrew/.linuxbrew/Homebrew
 | 
			
		||||
ENV PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH
 | 
			
		||||
WORKDIR /home/linuxbrew
 | 
			
		||||
 | 
			
		||||
# hadolint ignore=DL3003
 | 
			
		||||
RUN cd /home/linuxbrew/.linuxbrew \
 | 
			
		||||
  && mkdir -p bin etc include lib opt sbin share var/homebrew/linked Cellar \
 | 
			
		||||
  && ln -s ../Homebrew/bin/brew /home/linuxbrew/.linuxbrew/bin/ \
 | 
			
		||||
  && git -C /home/linuxbrew/.linuxbrew/Homebrew remote set-url origin https://github.com/Homebrew/brew \
 | 
			
		||||
  && git -C /home/linuxbrew/.linuxbrew/Homebrew fetch origin \
 | 
			
		||||
RUN mkdir -p \
 | 
			
		||||
     .linuxbrew/bin \
 | 
			
		||||
     .linuxbrew/etc \
 | 
			
		||||
     .linuxbrew/include \
 | 
			
		||||
     .linuxbrew/lib \
 | 
			
		||||
     .linuxbrew/opt \
 | 
			
		||||
     .linuxbrew/sbin \
 | 
			
		||||
     .linuxbrew/share \
 | 
			
		||||
     .linuxbrew/var/homebrew/linked \
 | 
			
		||||
     .linuxbrew/Cellar \
 | 
			
		||||
  && ln -s ../Homebrew/bin/brew .linuxbrew/bin/brew \
 | 
			
		||||
  && git -C .linuxbrew/Homebrew remote set-url origin https://github.com/Homebrew/brew \
 | 
			
		||||
  && git -C .linuxbrew/Homebrew fetch origin \
 | 
			
		||||
  && HOMEBREW_NO_ANALYTICS=1 HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/core \
 | 
			
		||||
  && brew install-bundler-gems \
 | 
			
		||||
  && brew cleanup \
 | 
			
		||||
  && { git -C /home/linuxbrew/.linuxbrew/Homebrew config --unset gc.auto; true; } \
 | 
			
		||||
  && { git -C /home/linuxbrew/.linuxbrew/Homebrew config --unset homebrew.devcmdrun; true; } \
 | 
			
		||||
  && rm -rf ~/.cache \
 | 
			
		||||
  && chown -R linuxbrew: /home/linuxbrew/.linuxbrew \
 | 
			
		||||
  && chmod -R g+w,o-w /home/linuxbrew/.linuxbrew
 | 
			
		||||
  && { git -C .linuxbrew/Homebrew config --unset gc.auto; true; } \
 | 
			
		||||
  && { git -C .linuxbrew/Homebrew config --unset homebrew.devcmdrun; true; } \
 | 
			
		||||
  && rm -rf .cache
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user