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.3-0" --checksum af5ec81cfb8e8420fe6af80a77d40da25e0f7e136abb6dde27267c97fb27cf8b
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-7" --checksum d6280b6f647a62bf6edc74dc8e526bfff63ddd8067dcb8540843f47203d9ccf1
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "consul" "1.12.0-0" --checksum 534818dcfec7dfb34d6f63acd9183601a0e7b01739654b04ffebe7cd091cc663
|
|
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 APP_VERSION="1.12.0" \
|
|
BITNAMI_APP_NAME="consul" \
|
|
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" ]
|