mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-06 06:43:54 +00:00
Update Dockerfile, add Build for Images, change docker-compose to use images
This commit is contained in:
parent
47c75772d1
commit
20da06ab91
5 changed files with 29 additions and 40 deletions
23
Dockerfile
23
Dockerfile
|
|
@ -1,25 +1,23 @@
|
|||
FROM alpine:3.10 AS build-base
|
||||
RUN apk add git make cmake g++ libusb-dev libpulse
|
||||
FROM alpine:latest AS build-base
|
||||
RUN apk add --no-cache 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
|
||||
RUN git clone --depth 1 https://gitea.osmocom.org/sdr/rtl-sdr.git /opt/rtl_sdr
|
||||
WORKDIR /opt/rtl_sdr/build
|
||||
RUN cmake .. && make
|
||||
|
||||
FROM build-base AS multimon
|
||||
ARG MULTIMON_VERSION=1.1.8
|
||||
RUN git clone --depth 1 --branch ${MULTIMON_VERSION} https://github.com/EliasOenal/multimon-ng.git /opt/multimon
|
||||
RUN git clone --depth 1 https://github.com/EliasOenal/multimon-ng.git /opt/multimon
|
||||
WORKDIR /opt/multimon/build
|
||||
RUN cmake .. && make
|
||||
|
||||
FROM alpine:3.10 AS boswatch
|
||||
FROM alpine:latest AS boswatch
|
||||
ARG BW_VERSION=develop
|
||||
RUN apk add git && \
|
||||
git clone --depth 1 --branch ${BW_VERSION} https://github.com/BOSWatch/BW3-Core.git /opt/boswatch
|
||||
|
||||
|
||||
FROM python:3.6-alpine AS runner
|
||||
FROM python:alpine AS boswatch-base
|
||||
LABEL maintainer="bastian@schroll-software.de"
|
||||
|
||||
# for RTL for MM
|
||||
|
|
@ -27,5 +25,14 @@ RUN apk add libusb-dev libpulse && \
|
|||
pip3 install pyyaml
|
||||
|
||||
COPY --from=boswatch /opt/boswatch/ /opt/boswatch/
|
||||
RUN mkdir /opt/boswatch/log
|
||||
COPY --from=multimon /opt/multimon/build/multimon-ng /opt/multimon/multimon-ng
|
||||
COPY --from=rtl_fm /opt/rtl_sdr/build/src/ /opt/rtl_sdr/
|
||||
WORKDIR /opt/boswatch
|
||||
|
||||
FROM boswatch-base AS client
|
||||
CMD python3 /opt/boswatch/bw_client.py -c client.yaml
|
||||
|
||||
FROM boswatch-base AS server
|
||||
CMD python3 /opt/boswatch/bw_server.py -c server.yaml
|
||||
EXPOSE 8080
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue