Skip to content

Commit abb74fc

Browse files
committed
remove upx from docker image
1 parent 19ba209 commit abb74fc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
FROM golang:1.20 AS builder
22

3-
RUN apt-get -qq update && apt-get -yqq install upx
4-
53
ENV GO111MODULE=on \
64
CGO_ENABLED=0 \
75
GOOS=linux \
@@ -14,12 +12,9 @@ COPY . .
1412
RUN go build \
1513
-trimpath \
1614
-ldflags "-s -w -X main.BuildTag=$(git describe --tags --abbrev=0) -X main.BuildName=golurectl -extldflags '-static'" \
17-
-installsuffix cgo \
1815
-o /bin/golurectl \
1916
./cmd/golurectl
2017

21-
RUN upx -q -9 /bin/golurectl
22-
2318
FROM scratch
2419
COPY --from=builder /bin/golurectl /bin/golurectl
2520

0 commit comments

Comments
 (0)