add cloudflared arm64 (#189)
* add cloudflared arm64 * typo * print cloudflared version on startup --------- Co-authored-by: gOOvER <116325+gOOvER@users.noreply.github.com> Co-authored-by: Quinten <67589015+QuintenQVD0@users.noreply.github.com>
This commit is contained in:
@@ -32,9 +32,11 @@ RUN apk add --no-cache \
|
|||||||
# updating npm
|
# updating npm
|
||||||
RUN npm install npm@latest -g
|
RUN npm install npm@latest -g
|
||||||
|
|
||||||
# add cloudflare repo
|
# download cloudflared
|
||||||
RUN curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o /usr/bin/cloudflared \
|
ARG TARGETPLATFORM
|
||||||
&& chmod+x /usr/bin/cloudflared
|
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ARCHITECTURE=amd64; elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then ARCHITECTURE=arm64; fi \
|
||||||
|
&& curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-${ARCHITECTURE} -o /usr/bin/cloudflared
|
||||||
|
RUN chmod +x /usr/bin/cloudflared
|
||||||
|
|
||||||
## Setup user and working directory
|
## Setup user and working directory
|
||||||
RUN adduser -D -h /home/container container -s /bin/bash container
|
RUN adduser -D -h /home/container container -s /bin/bash container
|
||||||
|
@@ -28,6 +28,7 @@ echo -e "${BLUE}-------------------------------------------------${NC}"
|
|||||||
echo -e "${YELLOW}Running on Alpine: ${RED} $(cat /etc/alpine-release)${NC}"
|
echo -e "${YELLOW}Running on Alpine: ${RED} $(cat /etc/alpine-release)${NC}"
|
||||||
echo -e "${YELLOW}Current timezone: ${RED} $(cat /etc/localtime)${NC}"
|
echo -e "${YELLOW}Current timezone: ${RED} $(cat /etc/localtime)${NC}"
|
||||||
echo -e "${YELLOW}NodeJS Version: ${RED} $(node -v) ${NC}"
|
echo -e "${YELLOW}NodeJS Version: ${RED} $(node -v) ${NC}"
|
||||||
|
echo -e "${YELLOW}Cloudflared Version: ${RED} $(/usr/bin/cloudflared --version) ${NC}"
|
||||||
echo -e "${BLUE}-------------------------------------------------${NC}"
|
echo -e "${BLUE}-------------------------------------------------${NC}"
|
||||||
|
|
||||||
# Replace Startup Variables
|
# Replace Startup Variables
|
||||||
|
Reference in New Issue
Block a user