Compare commits
	
		
			2 Commits
		
	
	
		
			2340aea618
			...
			bb6634ffc1
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| bb6634ffc1 | |||
| 1e589ba91a | 
							
								
								
									
										17
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -1,17 +1,14 @@
 | 
				
			|||||||
FROM python:3.11-slim
 | 
					FROM python:3.11-alpine
 | 
				
			||||||
 | 
					 | 
				
			||||||
RUN apt-get update && apt-get install -y --no-install-recommends curl tzdata && rm -rf /var/lib/apt/lists/*
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
RUN pip install --no-cache-dir requests pyyaml schedule
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
ENV TZ=Europe/Paris
 | 
					ENV TZ=Europe/Paris
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
 | 
					RUN apk add --no-cache tzdata curl \
 | 
				
			||||||
 | 
					    && cp /usr/share/zoneinfo/$TZ /etc/localtime \
 | 
				
			||||||
 | 
					    && echo $TZ > /etc/timezone \
 | 
				
			||||||
 | 
					    && pip install --no-cache-dir requests pyyaml schedule
 | 
				
			||||||
 | 
					
 | 
				
			||||||
WORKDIR /app
 | 
					WORKDIR /app
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY blocklist_scheduler.py /app/blocklist_scheduler.py
 | 
					COPY blocklist_scheduler.py .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN chmod +x /app/blocklist_scheduler.py
 | 
					ENTRYPOINT ["python3", "blocklist_scheduler.py"]
 | 
				
			||||||
 | 
					 | 
				
			||||||
ENTRYPOINT ["python3", "/app/blocklist_scheduler.py"]
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user