@@ -24,16 +24,15 @@ FROM debian:bookworm-slim AS builder-base
24
24
COPY --from=qemu-arm32 /usr/bin/qemu-arm-static /usr/bin/
25
25
COPY --from=qemu-arm64 /usr/bin/qemu-aarch64-static /usr/bin/
26
26
27
- ARG FLB_NIGHTLY_BUILD
28
- ENV FLB_NIGHTLY_BUILD=$FLB_NIGHTLY_BUILD
27
+ ARG FLB_NIGHTLY_BUILD \
28
+ FLB_CHUNK_TRACE=On
29
29
30
- ARG FLB_CHUNK_TRACE=On
31
- ENV FLB_CHUNK_TRACE=${FLB_CHUNK_TRACE}
30
+ ENV FLB_NIGHTLY_BUILD=$FLB_NIGHTLY_BUILD \
31
+ FLB_CHUNK_TRACE=${FLB_CHUNK_TRACE} \
32
+ DEBIAN_FRONTEND=noninteractive
32
33
33
34
RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log
34
35
35
- ENV DEBIAN_FRONTEND=noninteractive
36
-
37
36
# hadolint ignore=DL3008
38
37
RUN echo "deb http://deb.debian.org/debian bookworm-backports main" >> /etc/apt/sources.list && \
39
38
apt-get update && \
@@ -68,8 +67,9 @@ FROM builder-base AS builder
68
67
WORKDIR /src/fluent-bit/build/
69
68
70
69
# Required to be set to ARMV7 for that target
71
- ARG WAMR_BUILD_TARGET
72
- ARG EXTRA_CMAKE_FLAGS
70
+ ARG WAMR_BUILD_TARGET \
71
+ EXTRA_CMAKE_FLAGS
72
+
73
73
ENV EXTRA_CMAKE_FLAGS=${EXTRA_CMAKE_FLAGS}
74
74
75
75
# We do not want word splitting for EXTRA_CMAKE_FLAGS in case multiple are defined
@@ -94,8 +94,8 @@ RUN [ -n "${WAMR_BUILD_TARGET:-}" ] && EXTRA_CMAKE_FLAGS="$EXTRA_CMAKE_FLAGS -DW
94
94
ARG CFLAGS="-v"
95
95
ENV CFLAGS=${CFLAGS}
96
96
97
- RUN make -j "$(getconf _NPROCESSORS_ONLN)"
98
- RUN install bin/fluent-bit /fluent-bit/bin/
97
+ RUN make -j "$(getconf _NPROCESSORS_ONLN)" && \
98
+ install bin/fluent-bit /fluent-bit/bin/
99
99
100
100
# Configuration files
101
101
COPY conf/fluent-bit.conf \
@@ -177,8 +177,7 @@ RUN find /dpkg/ -type d -empty -delete && \
177
177
# We want latest at time of build
178
178
# hadolint ignore=DL3006
179
179
FROM gcr.io/distroless/cc-debian12 AS production
180
- ARG RELEASE_VERSION
181
- ENV FLUENT_BIT_VERSION=${RELEASE_VERSION}
180
+ EXPOSE 2020
182
181
LABEL description="Fluent Bit multi-architecture container image" \
183
182
vendor="Fluent Organization" \
184
183
version="${RELEASE_VERSION}" \
@@ -192,17 +191,18 @@ LABEL description="Fluent Bit multi-architecture container image" \
192
191
org.opencontainers.image.documentation="https://docs.fluentbit.io/" \
193
192
org.opencontainers.image.authors="Eduardo Silva <eduardo.silva@chronosphere.io>"
194
193
195
- # Copy the libraries from the extractor stage into root
196
- COPY --from=deb-extractor /dpkg /
194
+ ARG RELEASE_VERSION
195
+ ENV FLUENT_BIT_VERSION=${RELEASE_VERSION}
197
196
198
197
# Copy certificates
199
198
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
200
199
200
+ # Copy the libraries from the extractor stage into root
201
+ COPY --from=deb-extractor /dpkg /
202
+
201
203
# Finally the binaries as most likely to change
202
204
COPY --from=builder /fluent-bit /fluent-bit
203
205
204
- EXPOSE 2020
205
-
206
206
# Entry point
207
207
ENTRYPOINT [ "/fluent-bit/bin/fluent-bit" ]
208
208
CMD ["/fluent-bit/bin/fluent-bit" , "-c" , "/fluent-bit/etc/fluent-bit.conf" ]
0 commit comments