add Dockerfile (#8993)
This commit is contained in:
		
							parent
							
								
									0a552d5bdc
								
							
						
					
					
						commit
						7353882732
					
				
					 1 changed files with 18 additions and 0 deletions
				
			
		
							
								
								
									
										18
									
								
								docker/llm/inference/cpu/docker/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								docker/llm/inference/cpu/docker/Dockerfile
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,18 @@
 | 
				
			||||||
 | 
					FROM ubuntu:20.04
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ARG http_proxy
 | 
				
			||||||
 | 
					ARG https_proxy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Install PYTHON 3.9
 | 
				
			||||||
 | 
					RUN env DEBIAN_FRONTEND=noninteractive apt-get update && \
 | 
				
			||||||
 | 
					    apt install software-properties-common libunwind8-dev vim less -y && \
 | 
				
			||||||
 | 
					    add-apt-repository ppa:deadsnakes/ppa -y && \
 | 
				
			||||||
 | 
					    apt-get install -y python3.9 git curl wget && \
 | 
				
			||||||
 | 
					    rm /usr/bin/python3 && \
 | 
				
			||||||
 | 
					    ln -s /usr/bin/python3.9 /usr/bin/python3 && \
 | 
				
			||||||
 | 
					    ln -s /usr/bin/python3 /usr/bin/python && \
 | 
				
			||||||
 | 
					    apt-get install -y python3-pip python3.9-dev python3-wheel python3.9-distutils && \
 | 
				
			||||||
 | 
					    pip3 install --no-cache --upgrade requests argparse urllib3 && \
 | 
				
			||||||
 | 
					    pip3 install --pre --upgrade bigdl-llm[all] 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ENTRYPOINT ["/bin/bash"]
 | 
				
			||||||
		Loading…
	
		Reference in a new issue