Updating the image to perform some cleanup.
This commit is contained in:
		
							parent
							
								
									8c8f97a5c4
								
							
						
					
					
						commit
						b86d592cf6
					
				
					 1 changed files with 4 additions and 9 deletions
				
			
		|  | @ -5,21 +5,16 @@ ENV SCALA_VERSION ${SCALA_VERSION:-3.4.0} | ||||||
| ARG SBT_VERSION | ARG SBT_VERSION | ||||||
| ENV SBT_VERSION ${SBT_VERSION:-1.9.9} | ENV SBT_VERSION ${SBT_VERSION:-1.9.9} | ||||||
| 
 | 
 | ||||||
| # git is required for checkout | # git and node are required for checkout | ||||||
| # python3 is required for pre-commit | # python3 is required for pre-commit | ||||||
| # node is required for Forgejo checkout | # docker is required for certain DinD cases | ||||||
| #RUN apk add curl bash git docker python3 py3-pip nodejs npm |  | ||||||
| RUN apt-get update | RUN apt-get update | ||||||
| RUN apt-get install -y curl git docker python3 python3-pip nodejs | RUN apt-get install -y curl git docker python3 python3-pip nodejs | ||||||
| 
 | RUN pip3 install pre-commit | ||||||
| # On Alpine, must include --break-system-packages |  | ||||||
| RUN pip3 install pre-commit #--break-system-packages |  | ||||||
| 
 | 
 | ||||||
| # Create the user - builds do not run as root. | # Create the user - builds do not run as root. | ||||||
| #RUN addgroup -S -g 1000 builder |  | ||||||
| #RUN adduser -S -h /home/builder -s /bin/bash -G builder -u 1000 builder |  | ||||||
| RUN groupadd -g 1111 -r builder | RUN groupadd -g 1111 -r builder | ||||||
| RUN useradd -u 1111 -m -g 1111 -r builder | RUN useradd -u 1111 -m -g 1111 -r -s /bin/bash builder | ||||||
| 
 | 
 | ||||||
| # Switch to the build user. Everything else is installed at this level. | # Switch to the build user. Everything else is installed at this level. | ||||||
| USER builder | USER builder | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue