mirror of
https://github.com/bitnami/containers.git
synced 2026-04-01 06:48:13 +08:00
30 lines
1.2 KiB
Docker
30 lines
1.2 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 procps tar
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "yq" "4.27.2-0" --checksum bbe97d7488f4ff9421342d5cc45881b55944c802fced3a992a988365ce1c30fe
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-152" --checksum 0c751c7e2ec0bc900a19dbec0306d6294fe744ddfb0fa64197ba1a36040092f0
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "etcd" "3.5.4-152" --checksum 6b75f3d7bf871807514a78bb04ad3fb980053d489571534c72edf299a706930d
|
|
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.4" \
|
|
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" ]
|