new: better docker management and add more supported platforms

This commit is contained in:
hiddify
2024-09-29 11:48:17 +02:00
parent da7ccf8794
commit 715f97630f
2 changed files with 88 additions and 68 deletions

View File

@@ -7,8 +7,11 @@ RUN apk add curl tar gzip libc6-compat # iptables ip6tables
RUN case "$(apk --print-arch)" in \
x86_64) ARCH=amd64 ;; \
i386) ARCH=386 ;; \
armv7) ARCH=arm ;; \
aarch64) ARCH=arm64 ;; \
armv7) ARCH=armv7 ;; \
armv6) ARCH=armv6 ;;
armv5) ARCH=armv5 ;;
s390x) ARCH=s390x ;;\
*) echo "Unsupported architecture: $(apk --print-arch) $(uname -m)" && exit 1 ;; \
esac && \
curl -L -o hiddify-cli.tar.gz https://github.com/hiddify/hiddify-core/releases/download/${VERSION}/hiddify-cli-linux-$ARCH.tar.gz && \