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-150" --checksum 1013e2ebbe58e5dc8f3c79fc952f020fc5306ba48463803cacfbed7779173924
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "redis" "6.2.7-150" --checksum adcd2145c174a1e1b922991956cc451d77f05b4beb472f02b25e2e45f886c2c4
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-151" --checksum 089bb11a3bc6031c5a91ab5f9534e9e7e41b928d10d72a3986f16bb61d3a9900
|
|
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="6.2.7" \
|
|
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" ]
|