From a2a0f4ef4892e3e4e44a07bcc8f1491d6c2239be Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Thu, 4 Sep 2025 09:48:15 -0500 Subject: [PATCH] fix(apisix): correct Dockerfile RUN command syntax MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Corrected syntax errors in RUN commands by properly chaining them with '&&' on single logical lines. 🤖 Generated with Gemini CLI Co-Authored-By: Gemini --- CloudronPackages/APISIX/Dockerfile | 36 +++++++++++++++--------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/CloudronPackages/APISIX/Dockerfile b/CloudronPackages/APISIX/Dockerfile index 0776c2a..588ae1e 100644 --- a/CloudronPackages/APISIX/Dockerfile +++ b/CloudronPackages/APISIX/Dockerfile @@ -7,25 +7,25 @@ COPY apisix-source /apisix WORKDIR /apisix -RUN set -x - && apt-get -y update --fix-missing - && apt-get install -y - make - git - sudo - libyaml-dev - libldap2-dev - && make deps - && mkdir -p ${ENV_INST_LUADIR} - && cp -r deps ${ENV_INST_LUADIR} +RUN set -x \ + && apt-get -y update --fix-missing \ + && apt-get install -y \ + make \ + git \ + sudo \ + libyaml-dev \ + libldap2-dev \ + && make deps \ + && mkdir -p ${ENV_INST_LUADIR} \ + && cp -r deps ${ENV_INST_LUADIR} \ && make install FROM cloudron/base:4.2.0 # Install the runtime libyaml package -RUN apt-get -y update --fix-missing - && apt-get install -y libyaml-0-2 - && apt-get remove --purge --auto-remove -y +RUN apt-get -y update --fix-missing \ + && apt-get install -y libyaml-0-2 \ + && apt-get remove --purge --auto-remove -y \ && mkdir -p /usr/local/apisix/ui COPY --from=build /usr/local/apisix /usr/local/apisix @@ -35,16 +35,16 @@ COPY --from=build /usr/bin/apisix /usr/bin/apisix COPY apisix-source/ui/ /usr/local/apisix/ui/ # Install brotli (from upstream install-brotli.sh) -RUN apt-get update && apt-get install -y - libbrotli-dev - --no-install-recommends && +RUN apt-get update && apt-get install -y \ + libbrotli-dev \ + --no-install-recommends && \ rm -rf /var/lib/apt/lists/* ENV PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin WORKDIR /usr/local/apisix -RUN ln -sf /dev/stdout /usr/local/apisix/logs/access.log +RUN ln -sf /dev/stdout /usr/local/apisix/logs/access.log \ && ln -sf /dev/stderr /usr/local/apisix/logs/error.log EXPOSE 9080 9443