mirror of
https://github.com/bitnami/containers.git
synced 2026-03-13 06:48:08 +08:00
29 lines
1.2 KiB
Docker
29 lines
1.2 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 libc6 libgcc1 libpcre3 libssl1.1 libyaml-0-2 perl procps tar zlib1g zlib1g-dev
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "kong" "2.7.1-0" --checksum aa10e2e396ae77e64587875f2d70eecb274efd3f92a7aa21cb0bb41f2e4d1595
|
|
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-3" --checksum 276ab5a0be4b05e136ec468d62c8f9cc4f40d9664c55f01f16a9f1209ba16980
|
|
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/kong/postunpack.sh
|
|
ENV BITNAMI_APP_NAME="kong" \
|
|
BITNAMI_IMAGE_VERSION="2.7.1-debian-10-r1" \
|
|
PATH="/opt/bitnami/kong/bin:/opt/bitnami/kong/openresty/bin:/opt/bitnami/kong/openresty/luajit/bin:/opt/bitnami/kong/openresty/nginx/sbin:/opt/bitnami/common/bin:$PATH"
|
|
|
|
EXPOSE 8000 8001 8443 8444
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/kong/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/kong/run.sh" ]
|