11FROM golang:1.24-bullseye AS builder
22
33RUN apt-get update \
4- && apt-get install -y --no-install-recommends \
5- upx-ucl
4+ && apt-get install -y --no-install-recommends \
5+ upx-ucl
66
77WORKDIR /build
88
@@ -11,9 +11,9 @@ COPY . .
1111# Build
1212RUN go mod download && go mod tidy
1313RUN CGO_ENABLED=0 go build \
14- -ldflags='-w -s -extldflags "-static"' \
15- -o ./bin/blast blast.go \
16- && upx-ucl --best --ultra-brute ./bin/blast
14+ -ldflags='-w -s -extldflags "-static"' \
15+ -o ./bin/blast blast.go \
16+ && upx-ucl --best --ultra-brute ./bin/blast
1717
1818# ##############################################################################
1919# final stage
@@ -24,11 +24,11 @@ ARG DESCRIPTION="🚀 Blast: A powerful, lightweight HTTP load generator for str
2424ARG PACKAGE="trinhminhtriet/blast"
2525
2626LABEL org.opencontainers.image.ref.name="${PACKAGE}" \
27- org.opencontainers.image.authors=
"Triet Trinh <[email protected] >" \
28- org.opencontainers.image.documentation="https://github.com/${PACKAGE}/README.md" \
29- org.opencontainers.image.description="${DESCRIPTION}" \
30- org.opencontainers.image.licenses="MIT" \
31- org.opencontainers.image.source="https://github.com/${PACKAGE}"
27+ org.opencontainers.image.authors=
"Triet Trinh <[email protected] >" \
28+ org.opencontainers.image.documentation="https://github.com/${PACKAGE}/README.md" \
29+ org.opencontainers.image.description="${DESCRIPTION}" \
30+ org.opencontainers.image.licenses="MIT" \
31+ org.opencontainers.image.source="https://github.com/${PACKAGE}"
3232
3333COPY --from=builder /build/bin/blast /bin/
3434WORKDIR /workdir
0 commit comments