Files
containers/bitnami/promtail/2/debian-10/Dockerfile
2022-05-13 02:37:07 +00:00

26 lines
1.1 KiB
Docker

FROM docker.io/bitnami/minideb:buster
LABEL maintainer "Bitnami <containers@bitnami.com>"
ENV HOME="/" \
OS_ARCH="amd64" \
OS_FLAVOUR="debian-10" \
OS_NAME="linux"
COPY prebuildfs /
# Install required system packages and dependencies
RUN install_packages ca-certificates curl gzip libc6 procps tar wget
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/promtail-2.5.0-1-linux-amd64-debian-10.tar.gz && \
echo "041b1af9c9d9292a663c47ebd8306fcd79fd51cd9078e01ea8ce8335d8e24d6c /tmp/bitnami/pkg/cache/promtail-2.5.0-1-linux-amd64-debian-10.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/promtail-2.5.0-1-linux-amd64-debian-10.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
rm -rf /tmp/bitnami/pkg/cache/promtail-2.5.0-1-linux-amd64-debian-10.tar.gz
RUN apt-get update && apt-get upgrade -y && \
rm -r /var/lib/apt/lists /var/cache/apt/archives
RUN chmod g+rwX /opt/bitnami
ENV APP_VERSION="2.5.0" \
BITNAMI_APP_NAME="promtail" \
PATH="/opt/bitnami/promtail/bin:$PATH"
USER 1001
ENTRYPOINT [ "promtail" ]