build: Dockerfile: update rules and packages
@@ -6,16 +6,26 @@ ENV FLB_MINOR 13
ENV FLB_PATCH 0
ENV FLB_VERSION 0.13.0
+ENV DEBIAN_FRONTEND noninteractive
+
RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log /tmp/src/
COPY . /tmp/src/
RUN rm -rf /tmp/src/build/*
-RUN apt-get update && apt-get install -y build-essential cmake make wget unzip libsystemd-dev libssl1.0-dev libasl-dev
+RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y build-essential cmake make wget unzip libsystemd-dev libssl1.0-dev libasl-dev
WORKDIR /tmp/src/build/
-RUN cmake -DFLB_DEBUG=Off -DFLB_TRACE=Off -DFLB_JEMALLOC=On -DFLB_BUFFERING=On -DFLB_TLS=On -DFLB_WITHOUT_SHARED_LIB=On -DFLB_WITHOUT_EXAMPLES=On -DFLB_OUT_KAFKA=On ..
+RUN cmake -DFLB_DEBUG=Off \
+ -DFLB_TRACE=Off \
+ -DFLB_JEMALLOC=On \
+ -DFLB_BUFFERING=On \
+ -DFLB_TLS=On \
+ -DFLB_WITHOUT_SHARED_LIB=On \
+ -DFLB_WITHOUT_EXAMPLES=On \
+ -DFLB_HTTP_SERVER=On \
+ -DFLB_OUT_KAFKA=On ..
RUN make
RUN install bin/fluent-bit /fluent-bit/bin/
# Configuration files
@@ -27,7 +37,7 @@ LABEL Description="Fluent Bit docker image" Vendor="Fluent Organization" Version
RUN apt-get update \
&& apt-get dist-upgrade -y \
- && apt-get install --no-install-recommends ca-certificates -y \
+ && apt-get install --no-install-recommends ca-certificates libssl1.0.2 -y \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get autoclean
COPY --from=builder /fluent-bit /fluent-bit
