feat: Docker packaging and README
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
0a395fa735
commit
ae8c17d8d5
3 files changed
+132
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Pinned commit of the Turing Smart Screen library (we only need library/).
|
||||
ARG LCD_COMMIT=2b33ab4f00a096916dd6a1174441a53a7ec33b03
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
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' \
|
||||
&& rm /tmp/lcd.tar.gz
|
||||
|
||||
ENV LCD_LIB_PATH=/opt/lcd \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
TZ=Europe/Prague
|
||||
|
||||
COPY assets ./assets
|
||||
COPY lcdkit.py poller.py view.py timeutil.py weather_data.py weather_view.py stats_data.py server_view.py \
|
||||
registry.py runner.py main.py ./
|
||||
|
||||
CMD ["python", "main.py"]
|
||||
Reference in new issue
Block a user