Skip to content

Commit

Permalink
Merge pull request #709 from anarkiwi/smallbase
Browse files Browse the repository at this point in the history
Make base image multistage.
  • Loading branch information
anarkiwi authored Jun 10, 2023
2 parents 1c4954b + 6bfafd6 commit 998a31d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docker/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM iqtlabs/gnuradio:3.10.6
FROM iqtlabs/gnuradio:3.10.6 as builder
ENV DEBIAN_FRONTEND noninteractive
WORKDIR /root
RUN git clone https://github.com/pothosware/SoapyBladeRF -b soapy-bladerf-0.4.1
Expand All @@ -21,6 +21,14 @@ WORKDIR /root/bladeRF/host/build
RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DINSTALL_UDEV_RULES=ON -DENABLE_BACKEND_LIBUSB=TRUE .. && make -j "$(nproc)" && make install
WORKDIR /root/lime-tools/build
RUN cmake .. && make install

FROM iqtlabs/gnuradio:3.10.6
ENV DEBIAN_FRONTEND noninteractive
COPY --from=builder /usr/local /usr/local
RUN apt-get update && apt-get install -y --no-install-recommends \
libopencv-core4.5d \
libopencv-imgcodecs4.5d \
libopencv-imgproc4.5d && apt-get -y -q clean && rm -rf /var/lib/apt/lists/*
RUN ldconfig -v
RUN ln -sf /usr/local/lib/python3/dist-packages/* /usr/local/lib/python3.10/dist-packages
RUN python3 -c "from gnuradio import soapy, iqtlabs"

0 comments on commit 998a31d

Please sign in to comment.