Skip to content

Commit 7278461

Browse files
authored
Merge pull request #4 from eexit/compress-bin
Compress binary using upx
2 parents 5a4d2f1 + b75263b commit 7278461

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
FROM eexit/curl-healthchecker:v1.0.0 AS curl
22

33
FROM golang:1 AS builder
4-
RUN update-ca-certificates
4+
RUN apt-get update -y \
5+
&& apt-get install -y upx \
6+
&& update-ca-certificates
57
ARG version
68
ARG goos=linux
79
ARG goarch=amd64
@@ -13,6 +15,7 @@ RUN CGO_ENABLED=0 GOOS=${goos} GOARCH=${goarch} go build \
1315
-ldflags "-X github.com/eexit/http2smtp/internal/api.Version=${version}" \
1416
-o /http2smtp \
1517
./cmd/http2smtp
18+
RUN upx /http2smtp
1619

1720
FROM scratch
1821
COPY --from=curl /curl /

0 commit comments

Comments
 (0)