BW3-Core/Dockerfile

32 lines
1 KiB
Docker
Raw Normal View History

2021-02-16 15:06:18 +01:00
FROM alpine:3.13 AS build-base
2019-10-28 19:57:53 +01:00
RUN apk add git make cmake g++ libusb-dev libpulse
FROM build-base AS rtl_fm
ARG RTL_SDR_VERSION=0.6.0
RUN git clone --depth 1 --branch ${RTL_SDR_VERSION} https://github.com/osmocom/rtl-sdr.git /opt/rtl_sdr
WORKDIR /opt/rtl_sdr/build
RUN cmake .. && make
FROM build-base AS multimon
2021-02-16 15:06:18 +01:00
ARG MULTIMON_VERSION=1.1.9
2019-10-28 19:57:53 +01:00
RUN git clone --depth 1 --branch ${MULTIMON_VERSION} https://github.com/EliasOenal/multimon-ng.git /opt/multimon
WORKDIR /opt/multimon/build
RUN cmake .. && make
2021-02-16 15:06:18 +01:00
FROM alpine:3.13 AS boswatch
2019-10-28 19:57:53 +01:00
ARG BW_VERSION=develop
RUN apk add git && \
git clone --depth 1 --branch ${BW_VERSION} https://github.com/BOSWatch/BW3-Core.git /opt/boswatch
2021-02-16 15:06:18 +01:00
FROM python:3.9.1-alpine AS runner
2019-10-28 19:57:53 +01:00
LABEL maintainer="bastian@schroll-software.de"
# for RTL for MM
RUN apk add libusb-dev libpulse && \
pip3 install pyyaml
COPY --from=boswatch /opt/boswatch/ /opt/boswatch/
2021-02-16 15:08:30 +01:00
COPY --from=multimon /opt/multimon/build/multimon-ng /opt/multimon-ng
COPY --from=rtl_fm /opt/rtl_sdr/build/src/ /opt/rtl_sdr