-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (42 loc) · 1.73 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# https://github.com/fluent/fluent-bit/issues/1499
FROM fluent/fluent-bit:1.8.2 as fluent-bit
FROM ubuntu:focal as lua-libs
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y libpcre2-dev luarocks
RUN luarocks install lua-cjson \
&& luarocks install lrexlib-pcre2
# https://github.com/fluent/fluent-bit/blob/master/Dockerfile#L60
FROM ubuntu:focal
COPY --from=fluent-bit \
/usr/lib/x86_64-linux-gnu/libsasl*.so* \
# /usr/lib/x86_64-linux-gnu/libz* \
# /lib/x86_64-linux-gnu/libz* \
/usr/lib/x86_64-linux-gnu/libssl.so* \
/usr/lib/x86_64-linux-gnu/libcrypto.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* \
# /usr/lib/x86_64-linux-gnu/libgnutls* \
# /usr/lib/x86_64-linux-gnu/libp11-kit* \
# /usr/lib/x86_64-linux-gnu/libidn2* \
# /usr/lib/x86_64-linux-gnu/libunistring* \
# /usr/lib/x86_64-linux-gnu/libtasn1* \
# /usr/lib/x86_64-linux-gnu/libnettle* \
# /usr/lib/x86_64-linux-gnu/libhogweed* \
# /usr/lib/x86_64-linux-gnu/libgmp* \
# /usr/lib/x86_64-linux-gnu/libffi* \
# /lib/x86_64-linux-gnu/libcom_err* \
/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" ]