mirror of
				https://github.com/jarulsamy/Plex-Bot.git
				synced 2024-08-19 15:01:55 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			564 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			564 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM python:3.7-slim
 | |
| 
 | |
| LABEL maintainer="Joshua Arulsamy <joshua.gf.arul@gmail.com>"
 | |
| 
 | |
| # Install ffmpeg
 | |
| RUN apt-get -y update && \
 | |
|     apt-get install -y --no-install-recommends ffmpeg=7:4.1.6-1~deb10u1 && \
 | |
|     apt-get autoremove -y && \
 | |
|     apt-get clean && \
 | |
|     rm -rf /var/lib/apt/lists/*
 | |
| 
 | |
| # All source code
 | |
| WORKDIR /src
 | |
| 
 | |
| # Copy of dependency manifest
 | |
| COPY requirements.txt .
 | |
| 
 | |
| # Install all dependencies.
 | |
| RUN pip install --no-cache-dir -r requirements.txt
 | |
| 
 | |
| # Copy PlexBot over to src.
 | |
| COPY PlexBot/ PlexBot
 | |
| 
 | |
| # Run the bot
 | |
| CMD ["python", "-OO", "-m", "PlexBot"]
 |