forked from Nickduino/Pi-Somfy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (20 loc) · 797 Bytes
/
Dockerfile
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
FROM debian
# Update repository list
RUN apt-get update
# Install wget and gnupg2 so that we may add the raspbain repo
RUN apt-get install wget -y
RUN apt-get install gnupg2 -y
# Add the key and add the source
RUN wget http://raspbian.raspberrypi.org/raspbian.public.key -O - | apt-key add -
RUN echo 'deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi' >> /etc/apt/sources.list
# Update the repository list
RUN apt-get update
# Install all the packages required for Pi-somfy
RUN apt-get install pigpio -y
RUN apt-get install git -y
RUN apt-get install python3-pip -y
# Clone the Pi-Somfy repo
RUN git clone https://github.com/bremor/Pi-Somfy.git
# Install the required python libraries
RUN pip3 install -r /Pi-Somfy/requirements.txt
RUN pip3 install requests