mirror of
https://github.com/bitnami/containers.git
synced 2026-03-15 14:58:17 +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 iproute2 procps tar zlib1g-dev
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "render-template" "1.0.1-9" --checksum 4694f01476c5a457a71f280562df45ea542bdf3f9b298ff87643a89ea365f5fb
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-6" --checksum 6f8fd2267481ffbe899a7f93b7b3076cd78dd70b7b9835bed79414932a749664
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "consul" "1.11.3-2" --checksum 613a84150bf1e9caee0f505a8a370b4e0270423f963c1b3106e324dc3b9db8e1
|
|
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/consul/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="consul" \
|
|
BITNAMI_IMAGE_VERSION="1.11.3-debian-10-r10" \
|
|
PATH="/opt/bitnami/common/bin:/opt/bitnami/consul/bin:$PATH"
|
|
|
|
EXPOSE 8300 8301 8500 8600
|
|
|
|
EXPOSE 8301/udp 8600/udp
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/consul/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/consul/run.sh" ]
|