forked from thezak48/Varken
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
42 lines (32 loc) · 1.31 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM python:3.10.13-alpine
#ARG VERSION="0.0.0"
#ARG BRANCH="dev"
#ARG BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
#VERSION=$VERSION \
#BRANCH=$BRANCH \
#BUILD_DATE=$BUILD_DATE
ENV DEBUG="True" \
DATA_FOLDER="/config" \
VERSION="0.0.0" \
BRANCH="dev" \
BUILD_DATE="1970-01-01"
LABEL maintainer="navino16" \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.url="https://github.com/navino16/Varken" \
org.opencontainers.image.source="https://github.com/navino16/Varken" \
org.opencontainers.image.version=$VERSION \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.vendor="navino16" \
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"
WORKDIR /app
COPY /requirements.txt /Varken.py /app/
COPY /varken /app/varken
COPY /data /app/data
COPY /utilities /app/data/utilities
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
CMD cp /app/data/varken.example.ini /config/varken.example.ini && python3 /app/Varken.py