-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (24 loc) · 869 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (24 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
FROM alpine:latest
# rtl-sdr
RUN apk add libusb git build-base cmake libusb-dev
RUN git clone git://git.osmocom.org/rtl-sdr.git /tmp/rtl-sdr
RUN mkdir /tmp/rtl-sdr/build
WORKDIR /tmp/rtl-sdr/build
RUN cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
RUN make
RUN make install
# dump1090
RUN git clone https://github.com/flightaware/dump1090.git /tmp/dump1090
WORKDIR /tmp/dump1090
RUN apk add ncurses-dev
RUN make BLADERF=no
RUN cp dump1090 view1090 /usr/local/bin/
# re-create the image without all of the build tools/artefacts
FROM alpine:latest
RUN apk add --no-cache libusb ncurses-libs
COPY --from=0 /usr/local/bin/* /usr/local/bin/
COPY --from=0 /etc/udev/rules.d/rtl-sdr.rules /etc/udev/rules.d/rtl-sdr.rules
COPY --from=0 /usr/local/lib/librtlsdr* /usr/local/lib/
# Just expose the BEAST output port
CMD dump1090 --net --quiet --fix
EXPOSE 30005