32 lines
1.4 KiB
Docker
32 lines
1.4 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 acl ca-certificates curl gzip libc6 libssl1.1 procps tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wait-for-port" "1.0.1-6" --checksum 845ff207415b5730cadd45aa3c757ca45a5c9e73bc54c24aa481ddca24eec35d
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "redis" "6.2.6-6" --checksum 17861a0285d6ac04a9a7cbba996fbe65e8826facc12c4e888d91b49733534852
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-3" --checksum 276ab5a0be4b05e136ec468d62c8f9cc4f40d9664c55f01f16a9f1209ba16980
|
|
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 BITNAMI_APP_NAME="redis" \
|
|
BITNAMI_IMAGE_VERSION="6.2.6-debian-10-r118" \
|
|
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" ]
|