mirror of
https://github.com/thiagoralves/OpenPLC_v3.git
synced 2025-12-16 17:57:03 +08:00
Update debian, install wiringPi
Remove pigpio api, change wiringpi version Remove pigpio api, add wiringPi api Remove pigpio api, add wiringPi api
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -1,4 +1,4 @@
|
||||
FROM debian:bullseye-20240722
|
||||
FROM debian:stable
|
||||
|
||||
COPY . /workdir
|
||||
|
||||
@@ -8,6 +8,23 @@ RUN mkdir /docker_persistent
|
||||
|
||||
VOLUME /docker_persistent
|
||||
|
||||
# get git, wget, dpkg-dev and gettext
|
||||
RUN apt update && apt install -y \
|
||||
git \
|
||||
wget \
|
||||
dpkg-dev \
|
||||
gettext
|
||||
|
||||
# clone WiringPi
|
||||
RUN git clone https://github.com/WiringPi/WiringPi.git /api
|
||||
|
||||
# change the directory
|
||||
WORKDIR /api
|
||||
|
||||
# build wiringPi and install it
|
||||
RUN ./build debian \
|
||||
&& apt install -y ./debian-template/wiringpi_3.14_arm64.deb
|
||||
|
||||
RUN ./install.sh docker \
|
||||
&& touch /docker_persistent/mbconfig.cfg \
|
||||
&& touch /docker_persistent/persistent.file \
|
||||
|
||||
Reference in New Issue
Block a user