From 1e92b72bc9a86ebe2388753b7a609159e22058a1 Mon Sep 17 00:00:00 2001 From: Dudi Date: Sat, 29 Jul 2023 20:45:55 +0300 Subject: [PATCH] use fluentbit --- Dockerfile | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1c422c8..4bc5613 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,31 +10,10 @@ RUN luarocks install lua-cjson \ && luarocks install lrexlib-pcre2 # https://github.com/fluent/fluent-bit/blob/master/Dockerfile#L60 -FROM ubuntu:latest +FROM fluent-bit -COPY --from=fluent-bit \ - /usr/lib/x86_64-linux-gnu/libsasl*.so* \ - /usr/lib/x86_64-linux-gnu/libssl.so* \ - /usr/lib/x86_64-linux-gnu/libcrypto.so* \ - /usr/lib/x86_64-linux-gnu/libyaml*.so* \ - /usr/lib/x86_64-linux-gnu/ - -COPY --from=fluent-bit \ - /usr/lib/x86_64-linux-gnu/libpq.so* \ - /usr/lib/x86_64-linux-gnu/libgssapi* \ - /usr/lib/x86_64-linux-gnu/libldap* \ - /usr/lib/x86_64-linux-gnu/libkrb* \ - /usr/lib/x86_64-linux-gnu/libk5crypto* \ - /usr/lib/x86_64-linux-gnu/liblber* \ - /lib/x86_64-linux-gnu/libkeyutils* \ - /lib/x86_64-linux-gnu/ - -COPY --from=fluent-bit /fluent-bit/bin/ /fluent-bit/bin/ COPY --from=lua-libs /usr/local/lib/lua/ /usr/local/lib/lua/ COPY *.conf *.lua /fluent-bit/etc/ -RUN ldd /fluent-bit/bin/fluent-bit | sort \ - && /fluent-bit/bin/fluent-bit --version - ENTRYPOINT [ "/fluent-bit/bin/fluent-bit" ] CMD [ "-c", "/fluent-bit/etc/fluent-bit.conf" ] \ No newline at end of file