-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 869 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (23 loc) · 869 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
FROM python:3.13
# setup timezone
ENV TZ=Europe/Warsaw
# install additional packages and clean redundant files
RUN apt update && apt dist-upgrade -y && \
apt install -y iputils-ping net-tools less wget vim && \
rm -rf /var/lib/apt/lists/*
# upgrade pip to specific version
RUN pip install --upgrade pip==25.1.1
# install wiringpi dependancy
RUN wget https://github.com/WiringPi/WiringPi/releases/download/3.16/wiringpi_3.16_arm64.deb
RUN dpkg -i wiringpi_3.16_arm64.deb
# create app main directory
RUN mkdir /app
# copy content of the directory to /app, this includes lora.c and Makefile
COPY . /app
WORKDIR /app
# compile the LoRa lib
RUN make clean && make lib TARGET=DOCKER
# execute a Bash script; the script should run indefinitely or instead you can
# start a service which will keep the docer running
RUN chmod +x /app/start.sh
CMD /app/start.sh