forked from mklements/OLED_Stats
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (29 loc) · 705 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (29 loc) · 705 Bytes
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
FROM python:3-slim
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
gcc \
i2c-tools \
libjpeg62-turbo \
libopenjp2-7 \
zlib1g \
libfreetype6 \
procps \
iproute2 \
zlib1g-dev \
libjpeg-dev \
wget ca-certificates && \
rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir \
adafruit-blinka \
adafruit-circuitpython-ssd1306 \
pillow \
RPi.GPIO \
gpiozero \
smbus \
psutil
WORKDIR /opt/stats
COPY *.py *.ttf .
ENV PYTHONUNBUFFERED=1
ENTRYPOINT ["python"]
CMD ["stats.py"]