mirror of
https://github.com/bitnami/containers.git
synced 2026-03-15 06:48:04 +08:00
32 lines
1.3 KiB
Docker
32 lines
1.3 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 procps tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "yq" "4.19.1-0" --checksum fc3246374edb10a2d65df05c27187396ade8f91cb86e38b071704dcadde13802
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-3" --checksum 276ab5a0be4b05e136ec468d62c8f9cc4f40d9664c55f01f16a9f1209ba16980
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "etcd" "3.5.2-0" --checksum ce5f3bd0ea60c49e32a9f1cd41a897929b64d08b29f95d844aea43ff74baed79
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN chmod g+rwX /opt/bitnami
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/etcd/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="etcd" \
|
|
BITNAMI_IMAGE_VERSION="3.5.2-debian-10-r6" \
|
|
ETCDCTL_API="3" \
|
|
PATH="/opt/bitnami/common/bin:/opt/bitnami/etcd/bin:$PATH"
|
|
|
|
EXPOSE 2379 2380
|
|
|
|
WORKDIR /opt/bitnami/etcd
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/etcd/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/etcd/run.sh" ]
|