mirror of
				https://github.com/THIS-IS-NOT-A-BACKUP/zspotify.git
				synced 2025-11-03 21:10:34 +00:00 
			
		
		
		
	added basic Dockerfile
this config builds a small-ish (141Mb) docker image and allows running the tool via command line: ``` docker build . -t zspotify docker run --rm -it zspotify ```
This commit is contained in:
		
							parent
							
								
									c7bbf2caf1
								
							
						
					
					
						commit
						703d73cab0
					
				
							
								
								
									
										19
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,19 @@
 | 
				
			|||||||
 | 
					FROM python:3.9-alpine as base
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN apk --update add git ffmpeg
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					FROM base as builder
 | 
				
			||||||
 | 
					RUN mkdir /install
 | 
				
			||||||
 | 
					WORKDIR /install
 | 
				
			||||||
 | 
					COPY requirements.txt /requirements.txt
 | 
				
			||||||
 | 
					RUN apk add gcc libc-dev zlib zlib-dev jpeg-dev \
 | 
				
			||||||
 | 
					    && pip install --prefix="/install" -r /requirements.txt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					FROM base
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					COPY --from=builder /install /usr/local
 | 
				
			||||||
 | 
					COPY src /app
 | 
				
			||||||
 | 
					COPY zs_config.json /
 | 
				
			||||||
 | 
					WORKDIR /app
 | 
				
			||||||
 | 
					ENTRYPOINT ["/usr/local/bin/python", "app.py"]
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user