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