Skip to content

Commit 335a964

Browse files
authored
fix: do not use upx on s390x (#23)
1 parent 715a940 commit 335a964

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

linux/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ RUN go build \
2828
-o /helloworld .
2929

3030
# Compress with UPX (trade-off: smaller size vs startup time)
31-
RUN apk add --no-cache upx && upx --best --lzma /helloworld
31+
# Note: UPX is not available for s390x architecture
32+
RUN if [ "$(uname -m)" != "s390x" ]; then \
33+
apk add --no-cache upx && upx --best --lzma /helloworld; \
34+
fi
3235

3336
# ------------
3437
# Certificates

0 commit comments

Comments
 (0)