diff --git a/all-in-one/apisix-dashboard/Dockerfile b/all-in-one/apisix-dashboard/Dockerfile index b832bf3d..c8badcbc 100644 --- a/all-in-one/apisix-dashboard/Dockerfile +++ b/all-in-one/apisix-dashboard/Dockerfile @@ -51,9 +51,7 @@ RUN set -x \ && cp -v /usr/local/apisix/deps/lib/luarocks/rocks-5.1/apisix/${APISIX_VERSION}-0/bin/apisix /usr/bin/ \ && (if [ "$APISIX_VERSION" = "master" ] || [ "$APISIX_VERSION" \> "2.2" ]; then echo 'use shell ';else bin='#! /usr/local/openresty/luajit/bin/luajit\npackage.path = "/usr/local/apisix/?.lua;" .. package.path'; sed -i "1s@.*@$bin@" /usr/bin/apisix ; fi;) \ && mv /usr/local/apisix/deps/share/lua/5.1/apisix /usr/local/apisix \ - && apk del .builddeps build-base make unzip \ - && rm /usr/local/openresty/bin/etcdctl - + && apk del .builddeps build-base make unzip # Build etcd FROM alpine:3.13 AS etcd-stage diff --git a/debian-dev/Dockerfile b/debian-dev/Dockerfile index 9082cfb4..59df830f 100644 --- a/debian-dev/Dockerfile +++ b/debian-dev/Dockerfile @@ -51,8 +51,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN apt-get -y update --fix-missing \ && apt-get install -y \ libldap2-dev \ - && apt-get remove --purge --auto-remove -y \ - && rm /usr/local/openresty/bin/etcdctl + && apt-get remove --purge --auto-remove -y WORKDIR /usr/local/apisix