This is an automated email from the ASF dual-hosted git repository.

soulbird pushed a commit to branch release/apisix-3.1.0
in repository https://gitbox.apache.org/repos/asf/apisix-docker.git


The following commit(s) were added to refs/heads/release/apisix-3.1.0 by this 
push:
     new d0107f5  fix: replace wget with curl in apisix debian image(#419) 
(#421)
d0107f5 is described below

commit d0107f5ee5efd64de7c20a2adcdc9d6b4cfed920
Author: Baoyuan <[email protected]>
AuthorDate: Mon Feb 6 18:18:28 2023 +0800

    fix: replace wget with curl in apisix debian image(#419) (#421)
    
    Signed-off-by: fengshunli <[email protected]>
    Co-authored-by: fsl <[email protected]>
---
 debian/Dockerfile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/Dockerfile b/debian/Dockerfile
index 4d4cceb..aee58ff 100644
--- a/debian/Dockerfile
+++ b/debian/Dockerfile
@@ -22,18 +22,18 @@ ARG APISIX_VERSION=3.1.0
 RUN set -ex; \
     arch=$(dpkg --print-architecture); \
     apt update; \
-    apt-get -y install --no-install-recommends wget gnupg ca-certificates; \
+    apt-get -y install --no-install-recommends gnupg ca-certificates curl; \
     codename=`grep -Po 'VERSION="[0-9]+ \(\K[^)]+' /etc/os-release`; \
-    wget -O - https://openresty.org/package/pubkey.gpg | apt-key add -; \
+    curl -sSL https://openresty.org/package/pubkey.gpg | apt-key add -; \
     case "${arch}" in \
       amd64) \
         echo "deb http://openresty.org/package/debian $codename openresty" | 
tee /etc/apt/sources.list.d/openresty.list \
-        && wget -O - http://repos.apiseven.com/pubkey.gpg | apt-key add - \
+        && curl -sSL http://repos.apiseven.com/pubkey.gpg | apt-key add - \
         && echo "deb http://repos.apiseven.com/packages/debian $codename main" 
| tee /etc/apt/sources.list.d/apisix.list \
         ;; \
       arm64) \
         echo "deb http://openresty.org/package/arm64/debian $codename 
openresty" | tee /etc/apt/sources.list.d/openresty.list \
-        && wget -O - http://repos.apiseven.com/pubkey.gpg | apt-key add - \
+        && curl -sSL http://repos.apiseven.com/pubkey.gpg | apt-key add - \
         && echo "deb http://repos.apiseven.com/packages/arm64/debian $codename 
main" | tee /etc/apt/sources.list.d/apisix.list \
         ;; \
     esac; \

Reply via email to