Skip to content

Commit

Permalink
add cloudflared arm64 (#189)
Browse files Browse the repository at this point in the history
* add cloudflared arm64

* typo

* print cloudflared version on startup

---------

Co-authored-by: gOOvER <[email protected]>
Co-authored-by: Quinten <[email protected]>
  • Loading branch information
3 people authored Sep 26, 2023
1 parent 33c29c9 commit 1e054e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/uptimekuma/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ RUN apk add --no-cache \
# updating npm
RUN npm install npm@latest -g

# add cloudflare repo
RUN curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o /usr/bin/cloudflared \
&& chmod+x /usr/bin/cloudflared
# download cloudflared
ARG TARGETPLATFORM
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
RUN adduser -D -h /home/container container -s /bin/bash container
Expand Down
1 change: 1 addition & 0 deletions apps/uptimekuma/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ echo -e "${BLUE}-------------------------------------------------${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}NodeJS Version: ${RED} $(node -v) ${NC}"
echo -e "${YELLOW}Cloudflared Version: ${RED} $(/usr/bin/cloudflared --version) ${NC}"
echo -e "${BLUE}-------------------------------------------------${NC}"

# Replace Startup Variables
Expand Down

0 comments on commit 1e054e3

Please sign in to comment.