Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Knight1 authored Oct 19, 2024
1 parent 147b763 commit 8a5f58d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ RUN apk add --no-cache gcc build-base curl tar go &&\
WORKDIR /tmp/release/cmd/cloudflared

RUN go build -ldflags="-X 'main.Version=$UPSTREAM_RELEASE_TAG' -X 'main.BuildTime=$(date +%B\ %Y)' -s -w" &&\
if ! command -v upx > /dev/null 2>&1; then upx --best cloudflared; fi
if [ "$arch" != "riscv64" ] && [ "$arch" != "s390x" ] && [ "$arch" != "386" ]; then \
upx --best cloudflared; \
fi

FROM alpine:${ALPINE_VERSION}

Expand Down

0 comments on commit 8a5f58d

Please sign in to comment.