Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
fix: UPX安装失败后直接忽略
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoo committed Jun 25, 2022
1 parent 27d4e77 commit 6c3219c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM golang:alpine AS build
WORKDIR $GOPATH/src
COPY . .
RUN apk add upx \
&& go mod tidy\
RUN go mod tidy\
&& go build -o opqbot-manager -ldflags="-s -w" . \
&& upx opqbot-manager
&& apk add upx \
&& upx opqbot-manager \
|| echo "UPX Install Failed!"

FROM alpine:latest
LABEL MAINTAINER enjoy<i@mcenjoy.cn>
Expand Down

0 comments on commit 6c3219c

Please sign in to comment.