feat: run the departure board in the container, clock as fallback

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
rickzkmandClaude Sonnet 5.5 committed 2026-10-07 00:45:55 +02:00
1 parent 410eb82a02
commit e3304617f9
7 files changed
+245 -96

No files matched your search

+10 -6
View File
@@ -1,6 +1,6 @@
FROM python:3.12-slim
# Pinned commit of the Turing Smart Screen library (we only need library/ and the fonts).
# Pinned commit of the Turing Smart Screen library (we only need library/).
ARG LCD_COMMIT=2b33ab4f00a096916dd6a1174441a53a7ec33b03
WORKDIR /app
@@ -10,13 +10,17 @@ RUN pip install --no-cache-dir -r requirements.txt
ADD https://github.com/mathoudebine/turing-smart-screen-python/archive/${LCD_COMMIT}.tar.gz /tmp/lcd.tar.gz
RUN mkdir -p /opt/lcd \
&& tar -xzf /tmp/lcd.tar.gz -C /opt/lcd --strip-components=1 \
--wildcards '*/library' '*/res/fonts' \
&& tar -xzf /tmp/lcd.tar.gz -C /opt/lcd --strip-components=1 --wildcards '*/library' \
&& rm /tmp/lcd.tar.gz
ENV LCD_LIB_PATH=/opt/lcd \
PYTHONUNBUFFERED=1 \
TZ=Europe/Prague
TZ=Europe/Prague \
DATA_DIR=/data
COPY render.py clock.py ./
CMD ["python", "clock.py"]
COPY assets ./assets
COPY lines.yaml ./
COPY app.py board.py render.py schedule.py store.py timetable.py main.py ./
VOLUME /data
CMD ["python", "main.py"]