31 lines
1.3 KiB
Docker
31 lines
1.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 acl ca-certificates curl gzip libc6 libssl1.1 procps tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wait-for-port" "1.0.3-152" --checksum 0694ae67645c416d9f6875e90c0f7cef379b4ac8030a6a5b8b5cc9ca77c6975d
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "redis" "7.0.4-1" --checksum 295130284b985759f807eaf8c93018a93ae890d7a9d64c19f363f59c1c5cf17c
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-152" --checksum 0c751c7e2ec0bc900a19dbec0306d6294fe744ddfb0fa64197ba1a36040092f0
|
|
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 ln -s /opt/bitnami/scripts/redis/entrypoint.sh /entrypoint.sh
|
|
RUN ln -s /opt/bitnami/scripts/redis/run.sh /run.sh
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/redis/postunpack.sh
|
|
ENV APP_VERSION="7.0.4" \
|
|
BITNAMI_APP_NAME="redis" \
|
|
PATH="/opt/bitnami/common/bin:/opt/bitnami/redis/bin:$PATH"
|
|
|
|
EXPOSE 6379
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/redis/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/redis/run.sh" ]
|