Skip to content

Commit 61ef5d4

Browse files
committed
dockerfiles: consolidated layers related to directory creation and objcopy operations
Signed-off-by: anthis <[email protected]>
1 parent a687c62 commit 61ef5d4

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

dockerfiles/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ ENV FLB_NIGHTLY_BUILD=$FLB_NIGHTLY_BUILD
2828
ARG FLB_CHUNK_TRACE=On
2929
ENV FLB_CHUNK_TRACE=${FLB_CHUNK_TRACE}
3030

31-
RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log
32-
RUN mkdir -p /usr/lib/debug/fluent-bit/bin
31+
RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log /usr/lib/debug/fluent-bit/bin
3332

3433
ENV DEBIAN_FRONTEND noninteractive
3534

@@ -81,10 +80,9 @@ RUN cmake -DFLB_RELEASE=On \
8180

8281
RUN make -j "$(getconf _NPROCESSORS_ONLN)"
8382
RUN install bin/fluent-bit /fluent-bit/bin/
84-
85-
RUN objcopy --only-keep-debug /fluent-bit/bin/fluent-bit /usr/lib/debug/fluent-bit/bin/fluent-bit.debug
86-
RUN objcopy --strip-debug /fluent-bit/bin/fluent-bit
87-
RUN objcopy --add-gnu-debuglink=/usr/lib/debug/fluent-bit/bin/fluent-bit.debug /fluent-bit/bin/fluent-bit
83+
RUN objcopy --only-keep-debug /fluent-bit/bin/fluent-bit /usr/lib/debug/fluent-bit/bin/fluent-bit.debug && \
84+
objcopy --strip-debug /fluent-bit/bin/fluent-bit && \
85+
objcopy --add-gnu-debuglink=/usr/lib/debug/fluent-bit/bin/fluent-bit.debug /fluent-bit/bin/fluent-bit
8886

8987
# Configuration files
9088
COPY conf/fluent-bit.conf \

0 commit comments

Comments
 (0)