This is an automated email from the ASF dual-hosted git repository.
tokers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-docker.git
The following commit(s) were added to refs/heads/master by this push:
new 42f9e9c feat: reduce dev image size (#319)
42f9e9c is described below
commit 42f9e9c5097cfcfc16fbcecad0c3e2fc1eb2afe1
Author: 罗泽轩 <[email protected]>
AuthorDate: Tue Jun 21 09:19:16 2022 +0800
feat: reduce dev image size (#319)
Signed-off-by: spacewander <[email protected]>
---
debian-dev/Dockerfile | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/debian-dev/Dockerfile b/debian-dev/Dockerfile
index f47daf5..d7a8776 100644
--- a/debian-dev/Dockerfile
+++ b/debian-dev/Dockerfile
@@ -44,11 +44,14 @@ RUN set -x \
FROM api7/apisix-base:dev AS production-stage
-COPY --from=build /usr/lib/ /usr/lib/
COPY --from=build /usr/local/apisix /usr/local/apisix
COPY --from=build /usr/bin/apisix /usr/bin/apisix
-COPY --from=build /usr/local/openresty /usr/local/openresty
-COPY --from=build /usr/local/openresty-debug /usr/local/openresty-debug
+
+ENV DEBIAN_FRONTEND noninteractive
+RUN apt-get -y update --fix-missing \
+ && apt-get install -y \
+ libldap2-dev \
+ && apt-get remove --purge --auto-remove -y
WORKDIR /usr/local/apisix