Skip to content

Commit

Permalink
♻️ Remove upx command
Browse files Browse the repository at this point in the history
  • Loading branch information
Cairry authored Jan 7, 2025
1 parent 573ab7d commit 3c75a6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories
ca-certificates upx

RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build --ldflags="-X main.Version=${VERSION}" -o watchAlert . \
&& upx -9 watchAlert && chmod +x watchAlert
&& chmod +x watchAlert

FROM alpine:3.19

COPY --from=build /root/watchAlert /app/watchAlert

WORKDIR /app

ENTRYPOINT ["/app/watchAlert"]
ENTRYPOINT ["/app/watchAlert"]

0 comments on commit 3c75a6c

Please sign in to comment.