Skip to content

Commit

Permalink
修改构建文件支持arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
zatxm committed May 13, 2024
1 parent 2ca48a2 commit d553109
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ RUN go build -ldflags "-s -w" -o main cmd/main.go
RUN cd /go/src/anp \
&& apt update \
&& apt install xz-utils \
&& wget https://github.com/upx/upx/releases/download/v4.2.3/upx-4.2.3-amd64_linux.tar.xz \
&& tar -xf upx-4.2.3-amd64_linux.tar.xz \
&& cp upx-4.2.3-amd64_linux/upx upx \
&& wget https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-$(go env GOARCH)_linux.tar.xz \
&& tar -xf upx-4.2.4-$(go env GOARCH)_linux.tar.xz \
&& cp upx-4.2.4-$(go env GOARCH)_linux/upx upx \
&& ./upx --best main
FROM gcr.io/distroless/static-debian12
MAINTAINER Tu
Expand Down

0 comments on commit d553109

Please sign in to comment.