-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (28 loc) · 792 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (28 loc) · 792 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
from python:2.7-stretch as builder
RUN apt update && apt install -y \
build-essential \
libusb-1.0-0-dev \
cmake \
git && \
cd && \
git clone git://git.osmocom.org/rtl-sdr.git && \
cd rtl-sdr/ && \
mkdir build && \
cd build && \
cmake ../ && \
make && \
make install && \
ldconfig && \
cd && \
git clone https://github.com/jbfuzier/rtl-wmbus.git && \
cd rtl-wmbus/ && \
make release && \
apt remove --purge -y build-essential libusb-1.0-0-dev cmake
from python:2.7-stretch
WORKDIR /root/apator_water
COPY --from=builder /root/ /root/
COPY ./ /root/apator_water
RUN apt update && apt install -y \
libusb-1.0-0 && \
pip install --no-cache-dir -r requirements.txt
CMD [ "python", "-u", "water_consumption.py" ]