1- FROM registry.access.redhat.com/ubi8
1+ FROM registry.access.redhat.com/ubi9/ubi-minimal
22
33ARG OPENRESTY_RPM_VERSION="1.21.4-1.el8"
44ARG LUAROCKS_VERSION="3.11.1"
5- ARG JAEGERTRACING_CPP_CLIENT_RPM_VERSION="0.3.1-13.el8"
65
76LABEL summary="The 3scale API gateway (APIcast) is an OpenResty application, which consists of two parts: NGINX configuration and Lua files." \
87 description="APIcast is not a standalone API gateway therefore it needs connection to the 3scale API management platform. The container includes OpenResty and uses LuaRocks to install dependencies (rocks are installed in the application folder)." \
@@ -20,21 +19,16 @@ ENV AUTO_UPDATE_INTERVAL=0 \
2019 PATH=/opt/app-root/src/bin:/opt/app-root/bin:$PATH \
2120 PLATFORM="el8"
2221
23- RUN PKGS="perl-interpreter-5.26.3 libyaml-devel-0.1.7 m4 openssl-devel git gcc make curl" && \
24- mkdir -p "$HOME" && \
25- yum -y --setopt=tsflags=nodocs install $PKGS && \
26- rpm -V $PKGS && \
27- yum clean all -y
28-
29- RUN dnf install -y 'dnf-command(config-manager)'
22+ RUN microdnf update -y \
23+ && microdnf install -y 'yum-utils' dnf
3024
31- RUN yum config-manager --add-repo http://packages.dev.3sca.net/dev_packages_3sca_net.repo
25+ RUN yum- config-manager --add-repo http://packages.dev.3sca.net/dev_packages_3sca_net.repo
3226
3327RUN PKGS="openresty-resty-${OPENRESTY_RPM_VERSION} openresty-opentelemetry-${OPENRESTY_RPM_VERSION} openresty-${OPENRESTY_RPM_VERSION} luarocks-${LUAROCKS_VERSION}" && \
3428 mkdir -p "$HOME" && \
35- yum -y --setopt=tsflags=nodocs install $PKGS && \
29+ dnf -y --setopt=tsflags=nodocs install $PKGS && \
3630 rpm -V $PKGS && \
37- yum clean all -y
31+ dnf clean all -y
3832
3933COPY site_config.lua /usr/share/lua/5.1/luarocks/site_config.lua
4034COPY config-*.lua /usr/local/openresty/config-5.1.lua
@@ -61,18 +55,12 @@ RUN luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/man
6155RUN luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/golgote/net-url-0.9-1.src.rock
6256RUN luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/membphis/lua-resty-ipmatcher-0.6.1-0.src.rock
6357RUN luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/fffonion/lua-resty-openssl-1.5.1-1.src.rock
58+ RUN luarocks install --deps-mode=none --tree /usr/local https://luarocks.org/manifests/tkan145/lua-resty-jwt-0.2.4-0.src.rock
6459
65- # Install lua-resty-jwt from source due to Authentication Bypass bug
66- # See https://github.com/cdbattags/lua-resty-jwt/issues/61
67- RUN cd /tmp \
68- && git clone --recurse-submodules https://github.com/cdbattags/lua-resty-jwt \
69- && cd lua-resty-jwt \
70- && git reset --hard d1558e2 \
71- && luarocks make --tree /usr/local lua-resty-jwt-dev-0.rockspec
72-
73- RUN yum -y remove libyaml-devel m4 openssl-devel git gcc luarocks && \
74- rm -rf /var/cache/yum && yum clean all -y && \
75- rm -rf ./*
60+ RUN dnf -y remove yum-utils luarocks \
61+ && rm -rf /var/cache/yum /var/cache/dnf \
62+ && dnf clean all -y \
63+ && rm -rf ./*
7664
7765COPY gateway/. /opt/app-root/src/
7866
0 commit comments