This commit is contained in:
1 parent
774200fb39
commit
415bb3906a
7 files changed
+205
No files matched your search
@@ -0,0 +1,31 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
ARG F1TV_EPG_REPO=https://github.com/J-Lich/F1TV-EPG.git
|
||||
ARG F1TV_EPG_REF=main
|
||||
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
OUTPUT_DIR=/output \
|
||||
OUTPUT_FILE=guide.xml \
|
||||
REFRESH_INTERVAL_MINUTES=15 \
|
||||
RUN_ONCE=0
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends git ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN git clone --depth 1 --branch "$F1TV_EPG_REF" "$F1TV_EPG_REPO" . \
|
||||
&& pip install --no-cache-dir -r requirements.txt \
|
||||
&& rm -rf .git .github
|
||||
|
||||
COPY entrypoint.sh /app/entrypoint.sh
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
|
||||
VOLUME ["/output"]
|
||||
|
||||
HEALTHCHECK --interval=30m --timeout=5s --start-period=5m --retries=3 \
|
||||
CMD test -s "$OUTPUT_DIR/$OUTPUT_FILE"
|
||||
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
Reference in new issue
Block a user