2022-07-17 16:44:45 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								FROM python:3.10.5-alpine
							 
						 
					
						
							
								
									
										
										
										
											2020-12-21 10:35:01 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-12-21 11:00:45 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								ENV DEBUG="True" \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    DATA_FOLDER="/config" \
							 
						 
					
						
							
								
									
										
										
										
											2020-12-21 11:21:55 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    VERSION="0.0.0" \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    BRANCH="edge" \
							 
						 
					
						
							
								
									
										
										
										
											2020-12-21 11:00:45 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    BUILD_DATE="1/1/1970"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-12-21 10:35:01 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								LABEL maintainer="dirtycajunrice,samwiseg0" \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  org.opencontainers.image.created=$BUILD_DATE \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  org.opencontainers.image.url="https://github.com/Boerderij/Varken" \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  org.opencontainers.image.source="https://github.com/Boerderij/Varken" \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  org.opencontainers.image.version=$VERSION \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  org.opencontainers.image.revision=$VCS_REF \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  org.opencontainers.image.vendor="boerderij" \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  org.opencontainers.image.title="varken" \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  org.opencontainers.image.description="Varken is a standalone application to aggregate data from the Plex ecosystem into InfluxDB using Grafana for a frontend" \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  org.opencontainers.image.licenses="MIT"
							 
						 
					
						
							
								
									
										
										
										
											2018-12-10 20:27:54 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-01-25 12:34:29 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								WORKDIR /app
							 
						 
					
						
							
								
									
										
										
										
											2018-12-11 00:05:37 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-01-25 12:34:29 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								COPY /requirements.txt /Varken.py /app/
							 
						 
					
						
							
								
									
										
										
										
											2018-12-10 20:27:54 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-01-25 12:34:29 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								COPY /varken /app/varken
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								COPY /data /app/data
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-04-24 11:41:33 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								COPY /utilities /app/data/utilities
							 
						 
					
						
							
								
									
										
										
										
											2019-04-24 11:30:18 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-12-21 11:00:45 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								RUN \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  apk add --no-cache tzdata \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  && pip install --no-cache-dir -r /app/requirements.txt \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  && sed -i "s/0.0.0/${VERSION}/;s/develop/${BRANCH}/;s/1\/1\/1970/${BUILD_DATE//\//\\/}/" varken/__init__.py
							 
						 
					
						
							
								
									
										
										
										
											2019-01-02 23:15:12 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-06-18 17:09:46 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								CMD cp /app/data/varken.example.ini /config/varken.example.ini && python3 /app/Varken.py