Trying to fix upx again. (#5387)

This commit is contained in:
Dessalines 2025-02-04 10:32:55 -05:00 committed by GitHub
parent e31823171c
commit 596b4f19d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ RUN --mount=type=cache,target=/lemmy/target set -ex; \
# Compress the binary with upx # Compress the binary with upx
wget https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-amd64_linux.tar.xz; \ wget https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-amd64_linux.tar.xz; \
tar -xvf upx-4.2.4-amd64_linux.tar.xz; \ tar -xvf upx-4.2.4-amd64_linux.tar.xz; \
upx-4.2.4-amd64_linux/upx --best --lzma lemmy_server; \ ./upx-4.2.4-amd64_linux/upx --best --lzma lemmy_server; \
fi fi
# ARM64 builder # ARM64 builder
@ -80,7 +80,7 @@ RUN --mount=type=cache,target=./target,uid=10001,gid=10001 set -ex; \
# Compress the binary with upx # Compress the binary with upx
wget https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-arm64_linux.tar.xz; \ wget https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-arm64_linux.tar.xz; \
tar -xvf upx-4.2.4-arm64_linux.tar.xz; \ tar -xvf upx-4.2.4-arm64_linux.tar.xz; \
upx-4.2.4-amd64_linux/upx --best --lzma lemmy_server; \ ./upx-4.2.4-amd64_linux/upx --best --lzma lemmy_server; \
fi fi
# amd64 base runner # amd64 base runner