bitnami-containers/bitnami/nats/2/debian-11/Dockerfile

38 lines
1.7 KiB
Docker

FROM docker.io/bitnami/minideb:bullseye
ENV HOME="/" \
OS_ARCH="amd64" \
OS_FLAVOUR="debian-11" \
OS_NAME="linux"
LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \
org.opencontainers.image.description="Application packaged by Bitnami" \
org.opencontainers.image.ref.name="2.8.4-debian-11-r28" \
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/nats" \
org.opencontainers.image.title="nats" \
org.opencontainers.image.vendor="VMware, Inc." \
org.opencontainers.image.version="2.8.4"
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 "render-template" "1.0.3-152" --checksum 7909504f3232654c427681ecc8ed4b8599a2df0f17f26ff769a83ed167d05b69
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-153" --checksum d3ae0109be24e8bc56f97359b8290b91243454de946dd60bd8520a0896a88449
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "nats" "2.8.4-153" --checksum fd245edfa0b7343313b3f98aea74c07a8f82f8243e4a6f4aad9a40e19991f595
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/nats/postunpack.sh
ENV APP_VERSION="2.8.4" \
BITNAMI_APP_NAME="nats" \
PATH="/opt/bitnami/common/bin:/opt/bitnami/nats/bin:$PATH"
EXPOSE 4222 6222 8222
WORKDIR /opt/bitnami/nats
USER 1001
ENTRYPOINT [ "/opt/bitnami/scripts/nats/entrypoint.sh" ]
CMD [ "/opt/bitnami/scripts/nats/run.sh" ]