Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Knight1 authored Oct 18, 2024
1 parent c6e6504 commit 147b763
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ 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 ! command -v upx > /dev/null 2>&1; then upx --best cloudflared; fi

FROM alpine:${ALPINE_VERSION}

Expand Down

0 comments on commit 147b763

Please sign in to comment.