From 3820a5901ac763cbd33f30c3fd266c5da479b5dd Mon Sep 17 00:00:00 2001 From: Vinicius Mignot Date: Mon, 24 Jun 2024 19:39:36 -0300 Subject: [PATCH] fix(Dockerfile): symlink to required libz --- Dockerfile.rpm | 1 + centos/Dockerfile | 1 + rhel/Dockerfile | 1 + 3 files changed, 3 insertions(+) diff --git a/Dockerfile.rpm b/Dockerfile.rpm index 708008b1..a4ce772f 100644 --- a/Dockerfile.rpm +++ b/Dockerfile.rpm @@ -26,6 +26,7 @@ RUN set -ex; \ && rm /tmp/kong.rpm \ && chown kong:0 /usr/local/bin/kong \ && chown -R kong:0 "$KONG_PREFIX" \ + && ln -sf /usr/lib64/libz.so.1 /usr/lib64/libz.so \ && 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 \ diff --git a/centos/Dockerfile b/centos/Dockerfile index ddc44dab..526bdd10 100644 --- a/centos/Dockerfile +++ b/centos/Dockerfile @@ -34,6 +34,7 @@ RUN set -ex; \ && rm /tmp/kong.rpm \ && chown kong:0 /usr/local/bin/kong \ && chown -R kong:0 /usr/local/kong \ + && ln -sf /usr/lib64/libz.so.1 /usr/lib64/libz.so \ && 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 \ diff --git a/rhel/Dockerfile b/rhel/Dockerfile index 93d58533..8396d3ff 100644 --- a/rhel/Dockerfile +++ b/rhel/Dockerfile @@ -50,6 +50,7 @@ RUN set -ex; \ && rm /tmp/kong.rpm \ && chown kong:0 /usr/local/bin/kong \ && chown -R kong:0 /usr/local/kong \ + && ln -sf /usr/lib64/libz.so.1 /usr/lib64/libz.so \ && 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 \