39 lines
2.3 KiB
Docker
39 lines
2.3 KiB
Docker
FROM docker.io/bitnami/minideb:bullseye
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-11" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl gzip libbz2-1.0 libc6 libcom-err2 libcrypt1 libffi7 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblzma5 libncursesw6 libnsl2 libreadline8 libsqlite3-0 libssl1.1 libtinfo6 libtirpc3 locales procps tar wget zlib1g
|
|
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/python-3.9.13-152-linux-amd64-debian-11.tar.gz && \
|
|
echo "8bc1fe71b2fcda926d76852f1c4873ccf34765cded4f0211da7fa87191d8f030 /tmp/bitnami/pkg/cache/python-3.9.13-152-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/python-3.9.13-152-linux-amd64-debian-11.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/python-3.9.13-152-linux-amd64-debian-11.tar.gz
|
|
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/elasticsearch-curator-5.8.4-150-linux-amd64-debian-11.tar.gz && \
|
|
echo "f2ff273861ddd249dda1cdde4f5caed15ed47cfb445dafa51e4d084775385f73 /tmp/bitnami/pkg/cache/elasticsearch-curator-5.8.4-150-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/elasticsearch-curator-5.8.4-150-linux-amd64-debian-11.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/elasticsearch-curator-5.8.4-150-linux-amd64-debian-11.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
|
|
RUN localedef -c -f UTF-8 -i en_US en_US.UTF-8
|
|
RUN update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX && \
|
|
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
|
|
RUN echo 'en_GB.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen
|
|
RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/locales/add-extra-locales.sh
|
|
ENV APP_VERSION="5.8.4" \
|
|
BITNAMI_APP_NAME="elasticsearch-curator" \
|
|
LANG="en_US.UTF-8" \
|
|
LANGUAGE="en_US:en" \
|
|
PATH="/opt/bitnami/python/bin:/opt/bitnami/elasticsearch-curator/bin:$PATH"
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "curator" ]
|
|
CMD [ "--help" ]
|