I'm working on Fluent-bit I need to execute entry-point script in the container but fluent-bit image is distroless base image so any possibilities are there to install bash or any idea for executing that script?
please let me know
I'm working on Fluent-bit I need to execute entry-point script in the container but fluent-bit image is distroless base image so any possibilities are there to install bash or any idea for executing that script?
please let me know
You will need to COPY
a shell-binary and the entrypoint to your image like
FROM fluent/fluent-bit:1.4
COPY bash /bin/bash
COPY entrypoint.sh /
ENTRYPOINT ["entrypoint.sh"]
This would be analog to: Install Bash on scratch Docker image
As an alternative you can use a normal distro-image and install fluent-bit
via the distro's package manager or compile.