diff --git a/dockerfiles/Dockerfile b/dockerfiles/Dockerfile index 0992828ebe9..175f7f1800e 100644 --- a/dockerfiles/Dockerfile +++ b/dockerfiles/Dockerfile @@ -28,8 +28,7 @@ ENV FLB_NIGHTLY_BUILD=$FLB_NIGHTLY_BUILD ARG FLB_CHUNK_TRACE=On ENV FLB_CHUNK_TRACE=${FLB_CHUNK_TRACE} -RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log -RUN mkdir -p /usr/lib/debug/fluent-bit/bin +RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log /usr/lib/debug/fluent-bit/bin ENV DEBIAN_FRONTEND noninteractive @@ -81,10 +80,9 @@ RUN cmake -DFLB_RELEASE=On \ RUN make -j "$(getconf _NPROCESSORS_ONLN)" RUN install bin/fluent-bit /fluent-bit/bin/ - -RUN objcopy --only-keep-debug /fluent-bit/bin/fluent-bit /usr/lib/debug/fluent-bit/bin/fluent-bit.debug -RUN objcopy --strip-debug /fluent-bit/bin/fluent-bit -RUN objcopy --add-gnu-debuglink=/usr/lib/debug/fluent-bit/bin/fluent-bit.debug /fluent-bit/bin/fluent-bit +RUN objcopy --only-keep-debug /fluent-bit/bin/fluent-bit /usr/lib/debug/fluent-bit/bin/fluent-bit.debug && \ + objcopy --strip-debug /fluent-bit/bin/fluent-bit && \ + objcopy --add-gnu-debuglink=/usr/lib/debug/fluent-bit/bin/fluent-bit.debug /fluent-bit/bin/fluent-bit # Configuration files COPY conf/fluent-bit.conf \