From db50e6655ac3b366a4ae668e879b19827c9fdb61 Mon Sep 17 00:00:00 2001 From: shajen Date: Tue, 30 Jan 2024 20:48:00 +0100 Subject: [PATCH] Added binary with debug symbols. --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d593a1b..0db4163 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,9 +23,10 @@ RUN git clone --branch soapy-sdrplay3-0.4.2 https://github.com/pothosware/SoapyS WORKDIR /root/auto-sdr/ COPY . . -RUN cmake -B /root/auto-sdr/build -DCMAKE_BUILD_TYPE=Release /root/auto-sdr && \ +RUN cmake -B /root/auto-sdr/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-g" /root/auto-sdr && \ cmake --build /root/auto-sdr/build -j$(nproc) && \ - strip /root/auto-sdr/build/auto_sdr && \ + mv /root/auto-sdr/build/auto_sdr /root/auto-sdr/build/auto_sdr.debug && \ + strip /root/auto-sdr/build/auto_sdr.debug -o /root/auto-sdr/build/auto_sdr && \ strip /root/auto-sdr/build/auto_sdr_test FROM ubuntu:22.04 as run @@ -48,6 +49,7 @@ COPY --from=build /usr/local/lib/libsdrplay_api.so* /usr/local/lib/ COPY --from=build /usr/local/bin/sdrplay_apiService /usr/local/bin/ COPY --from=build /usr/local/lib/SoapySDR/modules0.8/libsdrPlaySupport.so /usr/local/lib/SoapySDR/modules0.8/ COPY --from=build /root/auto-sdr/build/auto_sdr /usr/bin/auto_sdr +COPY --from=build /root/auto-sdr/build/auto_sdr.debug /usr/bin/auto_sdr.debug RUN ldconfig COPY entrypoint/run.sh /entrypoint/run.sh CMD ["/entrypoint/run.sh"]