Don't copy upx to bin. (#5386)

This commit is contained in:
Dessalines 2025-02-04 09:22:58 -05:00 committed by GitHub
parent 5e60d84cd0
commit 34cbd3ce99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,8 +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; \
cp upx-4.2.4-amd64_linux/upx /usr/bin; \ upx-4.2.4-amd64_linux/upx --best --lzma lemmy_server; \
upx --best --lzma lemmy_server; \
fi fi
# ARM64 builder # ARM64 builder
@ -81,8 +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; \
cp upx-4.2.4-arm64_linux/upx /usr/bin; \ upx-4.2.4-amd64_linux/upx --best --lzma lemmy_server; \
upx --best --lzma /home/lemmy/lemmy_server; \
fi fi
# amd64 base runner # amd64 base runner