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.25.3-0" --checksum a937d298205d3f7e8fcaa3ddbd24934cb2b809bcea54a1c0b3e3f29aa61428ac
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-150" --checksum da4a2f759ccc57c100d795b71ab297f48b31c4dd7578d773d963bbd49c42bd7b
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "etcd" "3.4.18-150" --checksum 33ed4da3e2492d36dc78e3340349f09d638052dde97a966b928583b7d3ba6975
|
|
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.4.18" \
|
|
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" ]
|