-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.sct013
36 lines (28 loc) · 921 Bytes
/
Dockerfile.sct013
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
FROM python:3.12.0
RUN apt-get update && apt-get install -y \
build-essential \
python-dev-is-python3 \
python3-pip \
python3-pil \
python3-numpy \
ttf-wqy-zenhei \
python3-spidev \
python3-RPi.GPIO
RUN wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.71.tar.gz && \
tar zxvf bcm2835-1.71.tar.gz && \
cd bcm2835-1.71/ && \
./configure && sudo make && sudo make check && sudo make install
RUN git clone https://github.com/WiringPi/WiringPi && \
cd WiringPi/ && \
. ./build && \
gpio -v
RUN wget https://github.com/joan2937/lg/archive/master.zip && \
unzip master.zip && \
cd lg-master/ && \
make install
COPY requirements.txt .
RUN pip install --user -r requirements.txt
RUN git clone https://github.com/waveshare/High-Pricision_AD_HAT && \
cp High-Pricision_AD_HAT/python/ADS1263.py .
COPY sct013.py .
CMD ["python", "-u", "sct013.py"]