From a97b24c0cd5930544d0d73eaee07378bea3688b5 Mon Sep 17 00:00:00 2001 From: Vinicius Mignot Date: Mon, 24 Jun 2024 18:17:10 -0300 Subject: [PATCH] fix(Dockerfile): force symlink creation --- Dockerfile.deb | 8 ++++---- ubuntu/Dockerfile | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile.deb b/Dockerfile.deb index 62194947..844f2de9 100644 --- a/Dockerfile.deb +++ b/Dockerfile.deb @@ -30,10 +30,10 @@ RUN set -ex; \ && rm -rf /tmp/kong.deb \ && chown kong:0 /usr/local/bin/kong \ && chown -R kong:0 ${KONG_PREFIX} \ - && ln -s /usr/local/openresty/bin/resty /usr/local/bin/resty \ - && ln -s /usr/local/openresty/luajit/bin/luajit /usr/local/bin/luajit \ - && ln -s /usr/local/openresty/luajit/bin/luajit /usr/local/bin/lua \ - && ln -s /usr/local/openresty/nginx/sbin/nginx /usr/local/bin/nginx \ + && 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 \ && kong version \ && apt-get purge curl -y diff --git a/ubuntu/Dockerfile b/ubuntu/Dockerfile index d6b22ac6..aecc46d4 100644 --- a/ubuntu/Dockerfile +++ b/ubuntu/Dockerfile @@ -41,10 +41,10 @@ RUN set -ex; \ && rm -rf /tmp/kong.deb \ && chown kong:0 /usr/local/bin/kong \ && chown -R kong:0 /usr/local/kong \ - && ln -s /usr/local/openresty/bin/resty /usr/local/bin/resty \ - && ln -s /usr/local/openresty/luajit/bin/luajit /usr/local/bin/luajit \ - && ln -s /usr/local/openresty/luajit/bin/luajit /usr/local/bin/lua \ - && ln -s /usr/local/openresty/nginx/sbin/nginx /usr/local/bin/nginx \ + && 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