From daf0c6f4c7e7476a1068aecfda8728c7a561c775 Mon Sep 17 00:00:00 2001 From: sinlov Date: Tue, 25 Apr 2023 17:49:06 +0800 Subject: [PATCH] Update Dockerfile to support armv7 --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 46c8295..5dce836 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,12 @@ RUN apk add --no-cache tzdata \ && ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime \ && echo ${TZ} > /etc/timezone -RUN if [ "$(uname -m)" = "x86_64" ]; then export PLATFORM=amd64 ; else if [ "$(uname -m)" = "aarch64" ]; then export PLATFORM=arm64 ; fi fi \ - && wget --no-check-certificate https://github.com/fatedier/frp/releases/download/v${VERSION}/frp_${VERSION}_linux_${PLATFORM}.tar.gz \ +RUN if [ "$(uname -m)" = "x86_64" ]; then export PLATFORM=amd64 ; \ + elif [ "$(uname -m)" = "aarch64" ]; then export PLATFORM=arm64 ; \ + elif [ "$(uname -m)" = "armv7" ]; then export PLATFORM=arm ; \ + elif [ "$(uname -m)" = "armv7l" ]; then export PLATFORM=arm ; \ + elif [ "$(uname -m)" = "armhf" ]; then export PLATFORM=arm ; fi \ + && wget --no-check-certificate https://github.com/fatedier/frp/releases/download/v${VERSION}/frp_${VERSION}_linux_${PLATFORM}.tar.gz \ && tar xzf frp_${VERSION}_linux_${PLATFORM}.tar.gz \ && cd frp_${VERSION}_linux_${PLATFORM} \ && mkdir /frp \