Skip to content

Commit

Permalink
Merge pull request #58 from wiedehopf/main
Browse files Browse the repository at this point in the history
fix libairspyhf issue
  • Loading branch information
kx1t authored Oct 26, 2024
2 parents 1febe48 + d96a7fe commit 15c7f2f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ echo "TARGETARCH $TARGETARCH" && \
#KEPT_PACKAGES+=(librtlsdr0) && \
KEPT_PACKAGES+=(libairspy0) && \
KEPT_PACKAGES+=(libhackrf0) && \
KEPT_PACKAGES+=(libairspyhf1) && \
KEPT_PACKAGES+=(libzmq5) && \
KEPT_PACKAGES+=(libsoxr0) && \
# KEPT_PACKAGES+=(libcurl4) && \
Expand Down Expand Up @@ -74,12 +73,17 @@ echo "TARGETARCH $TARGETARCH" && \
apt-get remove -y "${TEMP_PACKAGES[@]}"; \
fi && \
apt-get autoremove -y && \
# delete unnecessary qemu binaries to save lots of space
{ find /usr/bin -regex '/usr/bin/qemu-.*-static' | grep -v qemu-arm-static | xargs rm -vf {} || true; } && \
rm -rf /src/* /tmp/* /var/lib/apt/lists/*

COPY rootfs/ /

# add AIS-catcher
COPY --from=build /usr/local/bin/AIS-catcher /usr/local/bin/AIS-catcher
# add AIS-catcher and libairspyhf
RUN \
--mount=type=bind,from=build,source=/,target=/build/ \
set -x && \
cp -v /build/usr/local/bin/AIS-catcher /usr/local/bin/AIS-catcher && \
find /build | grep libairspyhf | cut -d/ --complement -f1,2 | xargs --replace echo cp -v /build/'{}' /'{}' && \
true

# Add Container Version
RUN set -x && \
Expand All @@ -92,5 +96,7 @@ pushd /tmp && \
popd && \
rm -rf /tmp/*

COPY rootfs/ /

# Add healthcheck
HEALTHCHECK --start-period=60s --interval=120s --timeout=100s CMD /healthcheck/healthcheck.sh

0 comments on commit 15c7f2f

Please sign in to comment.