sha256:76c14b93e989f7f4418039f7f9789ca32564016211c86ac1a18022f4788e7b9c
OS/ARCH
Compressed size
113.38 MB
Last pushed
4 months by doijanky
Type
Image
Vulnerabilities
Manifest digest
sha256:0964be0d4523faafcf51f73760521509fa74e1ce9dac74f02b1c3f05e0b89082
6
ARG ASSET=ce
0 B
7
ENV ASSET=ce
0 B
8
ARG EE_PORTS
0 B
9
COPY kong.deb /tmp/kong.deb # buildkit
125 B
10
ARG KONG_VERSION=3.9.1
0 B
11
ENV KONG_VERSION=3.9.1
0 B
12
ARG KONG_AMD64_SHA=8f493149bfc321d3108e5031f5008dd1511aed166fb0d4673916577d04c63eac
0 B
13
ARG KONG_ARM64_SHA=87f9c971d232c71fcd21808c65082cdd9ded3441950c00d2718206b6438c7cd8
0 B
14
RUN |5 ASSET=ce EE_PORTS= KONG_VERSION=3.9.1 KONG_AMD64_SHA=8f493149bfc321d3108e5031f5008dd1511aed166fb0d4673916577d04c63eac KONG_ARM64_SHA=87f9c971d232c71fcd21808c65082cdd9ded3441950c00d2718206b6438c7cd8 /bin/sh -c set -ex; arch=$(dpkg --print-architecture); case "${arch}" in amd64) KONG_SHA256=$KONG_AMD64_SHA ;; arm64) KONG_SHA256=$KONG_ARM64_SHA ;; esac; apt-get update && if [ "$ASSET" = "ce" ] ; then apt-get install -y --no-install-recommends curl ca-certificates && UBUNTU_CODENAME=$(cat /etc/os-release | grep UBUNTU_CODENAME | cut -d = -f 2) && KONG_REPO=$(echo ${KONG_VERSION%.*} | sed 's/\.//') && curl -fL https://packages.konghq.com/public/gateway-$KONG_REPO/deb/ubuntu/pool/$UBUNTU_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 - || exit 1; else apt-get upgrade -y ; fi; apt-get install -y --no-install-recommends unzip git && apt install --yes --no-install-recommends /tmp/kong.deb && 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
90.01 MB
15
COPY docker-entrypoint.sh /docker-entrypoint.sh # buildkit
1.16 KB
16
USER kong
0 B
17
ENTRYPOINT ["/docker-entrypoint.sh"]
0 B
18
EXPOSE map[8000/tcp:{} 8001/tcp:{} 8443/tcp:{} 8444/tcp:{}]
0 B
19
STOPSIGNAL SIGQUIT
0 B
20
HEALTHCHECK &{["CMD-SHELL" "kong health"] "10s" "10s" "0s" "0s" '\n'}
0 B
21
CMD ["kong" "docker-start"]
0 B