30 lines
1.2 KiB
Docker
30 lines
1.2 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 procps tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wait-for-port" "1.0.1-3" --checksum 9e18c6c3411e702eb16aa60dc77baf3fd9af8d5beb2623936ef3af343d5ffd5b
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "redis" "5.0.14-3" --checksum fe8cf3f97927f5eaa014de917a02a511d8aaaed7c870c8bad6ee846c1d603a83
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-0" --checksum 3e6fc37ca073b10a73a804d39c2f0c028947a1a596382a4f8ebe43dfbaa3a25e
|
|
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="5.0.14-debian-10-r60" \
|
|
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" ]
|