sha256:a2b02d517849d74f861cf001ac72e1775549bcac0e95d85ed45593390d516a5b
OS/ARCH
linux/amd64
Compressed size
177.04 MB
Last pushed
4 months by doijanky
Type
Image
Vulnerabilities
Manifest digest
sha256:8c4bda3fc0610fcd500c0c5fb1c6e01cc3730346ef70381ed5c26b4b2eb81940
5
ARG ASSET=ce
0 B
6
ENV ASSET=ce
0 B
7
ARG EE_PORTS
0 B
8
COPY kong.deb /tmp/kong.deb # buildkit
25.08 MB
9
ARG KONG_VERSION=2.8.5
0 B
10
ENV KONG_VERSION=2.8.5
0 B
11
ARG KONG_AMD64_SHA=efba2bb8b1cb567bc90cc371e80503c558cbc74377b34609552ae2273def3fe3
0 B
12
ARG KONG_ARM64_SHA=4fff44f9a0c7b06469591b7d1499a99a100109bc3f08dc412dd0eb38ff383d35
0 B
13
RUN |5 ASSET=ce EE_PORTS= KONG_VERSION=2.8.5 KONG_AMD64_SHA=efba2bb8b1cb567bc90cc371e80503c558cbc74377b34609552ae2273def3fe3 KONG_ARM64_SHA=4fff44f9a0c7b06469591b7d1499a99a100109bc3f08dc412dd0eb38ff383d35 /bin/sh -c set -ex; arch=$(dpkg --print-architecture); major_minor="$(echo "${KONG_VERSION%.*}" | tr -d '.')"; case "${arch}" in amd64) KONG_SHA256=$KONG_AMD64_SHA ;; arm64) KONG_SHA256=$KONG_ARM64_SHA ;; esac; apt-get update && if [ "$ASSET" = "ce" ] ; then CODENAME=$(grep -m1 VERSION_CODENAME /etc/os-release | cut -d = -f 2); apt-get install -y curl && curl -fL "https://packages.konghq.com/public/gateway-${major_minor}/deb/ubuntu/pool/${CODENAME}/main/k/ko/kong_${KONG_VERSION}/kong_${KONG_VERSION}_${arch}.deb" -o /tmp/kong.deb && apt-get purge -y curl && echo "$KONG_SHA256 /tmp/kong.deb" | sha256sum -c -; else apt-get upgrade -y ; fi && apt-get install -y --no-install-recommends unzip git && apt install --yes /tmp/kong.deb luarocks && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/kong.deb && chown kong:0 /usr/local/bin/kong && chown -R kong:0 /usr/local/kong && ln -sf /usr/local/openresty/bin/resty /usr/local/bin/resty && ln -sf /usr/local/openresty/luajit/bin/luajit /usr/local/bin/luajit && ln -sf /usr/local/openresty/luajit/bin/luajit /usr/local/bin/lua && ln -sf /usr/local/openresty/nginx/sbin/nginx /usr/local/bin/nginx && if [ "$ASSET" = "ce" ] ; then kong version ; fi # buildkit
130.82 MB
14
COPY docker-entrypoint.sh /docker-entrypoint.sh # buildkit
881 B
15
USER kong
0 B
16
ENTRYPOINT ["/docker-entrypoint.sh"]
0 B
17
EXPOSE map[8000/tcp:{} 8001/tcp:{} 8443/tcp:{} 8444/tcp:{}]
0 B
18
STOPSIGNAL SIGQUIT
0 B
19
HEALTHCHECK &{["CMD-SHELL" "kong health"] "1m0s" "10s" "0s" "0s" '\n'}
0 B
20
CMD ["kong" "docker-start"]
0 B