mirror of
https://github.com/bitnami/containers.git
synced 2026-02-24 07:07:37 +08:00
31 lines
1.2 KiB
Docker
31 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 procps tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "yq" "4.24.3-0" --checksum 6cb749e7cdf243eb2ece3c27f07b01413f030430150748bdd94f91a00e169efa
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-7" --checksum d6280b6f647a62bf6edc74dc8e526bfff63ddd8067dcb8540843f47203d9ccf1
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "etcd" "3.5.2-0" --checksum 01cc2b4382191deee9a3eec9ad5f9fd8cf2b8afda7883ff2ffa497f58fdfb2a2
|
|
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 APP_VERSION="3.5.2" \
|
|
BITNAMI_APP_NAME="etcd" \
|
|
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" ]
|