Add intelanalytics/ipex-llm:sources image for OSPDT (#11296)
* Add intelanalytics/ipex-llm:sources image * apt-get source
This commit is contained in:
		
							parent
							
								
									01fe0fc1a2
								
							
						
					
					
						commit
						84f04087fb
					
				
					 2 changed files with 29 additions and 0 deletions
				
			
		
							
								
								
									
										17
									
								
								docker/llm/sources/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								docker/llm/sources/Dockerfile
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,17 @@
 | 
				
			||||||
 | 
					FROM ubuntu:22.04
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Add deb-src entries to the sources.list
 | 
				
			||||||
 | 
					RUN echo "deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse" >> /etc/apt/sources.list
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Update package lists and install dpkg-dev
 | 
				
			||||||
 | 
					RUN apt-get update && apt-get install -y dpkg-dev
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Create a temporary directory, adjust permissions, and download source code for the specified packages
 | 
				
			||||||
 | 
					RUN mkdir -p /usr/local/src/git-source && \
 | 
				
			||||||
 | 
					    chown _apt:root /usr/local/src/git-source && \
 | 
				
			||||||
 | 
					    cd /usr/local/src/git-source && \
 | 
				
			||||||
 | 
					    apt-get source \
 | 
				
			||||||
 | 
					    git \
 | 
				
			||||||
 | 
					    gnupg \
 | 
				
			||||||
 | 
					    numactl \
 | 
				
			||||||
 | 
					    wget
 | 
				
			||||||
							
								
								
									
										12
									
								
								docker/llm/sources/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								docker/llm/sources/README.md
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,12 @@
 | 
				
			||||||
 | 
					This is used for OSPDT review.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					A separate Docker container layer tagged as: <YOUR_DOCKER_IMAGE>:<xPL_VERSION>-sources tag for sources of 3d party packages with MPL 1.x, MPL 2.x, GPL 1.x, GPL 2.x and GPL 3.x variants.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Build Image
 | 
				
			||||||
 | 
					```bash
 | 
				
			||||||
 | 
					docker build \
 | 
				
			||||||
 | 
					  --build-arg http_proxy=.. \
 | 
				
			||||||
 | 
					  --build-arg https_proxy=.. \
 | 
				
			||||||
 | 
					  --build-arg no_proxy=.. \
 | 
				
			||||||
 | 
					  --rm --no-cache -t intelanalytics/ipex-llm:sources .
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
		Loading…
	
		Reference in a new issue