1+ # syntax=docker/dockerfile:1
2+ # check=skip=InvalidBaseImagePlatform
13
24# To use this container you may need to do the following:
35# https://askubuntu.com/a/1369504
1416ARG RELEASE_VERSION=3.1.7
1517
1618# For multi-arch builds - assumption is running on an AMD64 host
17- FROM multiarch/qemu-user-static:x86_64-arm as qemu-arm32
18- FROM multiarch/qemu-user-static:x86_64-aarch64 as qemu-arm64
19+ FROM multiarch/qemu-user-static:x86_64-arm AS qemu-arm32
20+ FROM multiarch/qemu-user-static:x86_64-aarch64 AS qemu-arm64
1921
20- FROM debian:bookworm-slim as builder-base
22+ FROM debian:bookworm-slim AS builder-base
2123
2224COPY --from=qemu-arm32 /usr/bin/qemu-arm-static /usr/bin/
2325COPY --from=qemu-arm64 /usr/bin/qemu-aarch64-static /usr/bin/
@@ -30,7 +32,7 @@ ENV FLB_CHUNK_TRACE=${FLB_CHUNK_TRACE}
3032
3133RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log
3234
33- ENV DEBIAN_FRONTEND noninteractive
35+ ENV DEBIAN_FRONTEND= noninteractive
3436
3537# hadolint ignore=DL3008
3638RUN echo "deb http://deb.debian.org/debian bookworm-backports main" >> /etc/apt/sources.list && \
@@ -61,7 +63,7 @@ WORKDIR /src/fluent-bit/
6163COPY . ./
6264
6365# We split the builder setup out so people can target it or use as a base image without doing a full build.
64- FROM builder-base as builder
66+ FROM builder-base AS builder
6567WORKDIR /src/fluent-bit/build/
6668RUN cmake -DFLB_RELEASE=On \
6769 -DFLB_JEMALLOC=On \
@@ -97,7 +99,7 @@ RUN /fluent-bit/bin/fluent-bit -J > /fluent-bit/etc/schema.json
9799
98100# Simple example of how to properly extract packages for reuse in distroless
99101# Taken from: https://github.com/GoogleContainerTools/distroless/issues/863
100- FROM debian:bookworm-slim as deb-extractor
102+ FROM debian:bookworm-slim AS deb-extractor
101103COPY --from=qemu-arm32 /usr/bin/qemu-arm-static /usr/bin/
102104COPY --from=qemu-arm64 /usr/bin/qemu-aarch64-static /usr/bin/
103105
@@ -154,7 +156,7 @@ RUN find /dpkg/ -type d -empty -delete && \
154156
155157# We want latest at time of build
156158# hadolint ignore=DL3006
157- FROM gcr.io/distroless/cc-debian12 as production
159+ FROM gcr.io/distroless/cc-debian12 AS production
158160ARG RELEASE_VERSION
159161ENV FLUENT_BIT_VERSION=${RELEASE_VERSION}
160162LABEL description="Fluent Bit multi-architecture container image" \
@@ -185,7 +187,7 @@ EXPOSE 2020
185187ENTRYPOINT [ "/fluent-bit/bin/fluent-bit" ]
186188CMD ["/fluent-bit/bin/fluent-bit" , "-c" , "/fluent-bit/etc/fluent-bit.conf" ]
187189
188- FROM debian:bookworm-slim as debug
190+ FROM debian:bookworm-slim AS debug
189191ARG RELEASE_VERSION
190192ENV FLUENT_BIT_VERSION=${RELEASE_VERSION}
191193LABEL description="Fluent Bit multi-architecture debug container image" \
@@ -203,7 +205,7 @@ LABEL description="Fluent Bit multi-architecture debug container image" \
203205
204206COPY --from=qemu-arm32 /usr/bin/qemu-arm-static /usr/bin/
205207COPY --from=qemu-arm64 /usr/bin/qemu-aarch64-static /usr/bin/
206- ENV DEBIAN_FRONTEND noninteractive
208+ ENV DEBIAN_FRONTEND= noninteractive
207209
208210# hadolint ignore=DL3008
209211RUN echo "deb http://deb.debian.org/debian bookworm-backports main" >> /etc/apt/sources.list && \
0 commit comments