mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-02-06 00:54:47 +00:00
Don't copy upx to bin. (#5386)
This commit is contained in:
parent
5e60d84cd0
commit
34cbd3ce99
1 changed files with 2 additions and 4 deletions
|
@ -42,8 +42,7 @@ RUN --mount=type=cache,target=/lemmy/target set -ex; \
|
|||
# Compress the binary with upx
|
||||
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; \
|
||||
cp upx-4.2.4-amd64_linux/upx /usr/bin; \
|
||||
upx --best --lzma lemmy_server; \
|
||||
upx-4.2.4-amd64_linux/upx --best --lzma lemmy_server; \
|
||||
fi
|
||||
|
||||
# ARM64 builder
|
||||
|
@ -81,8 +80,7 @@ RUN --mount=type=cache,target=./target,uid=10001,gid=10001 set -ex; \
|
|||
# Compress the binary with upx
|
||||
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; \
|
||||
cp upx-4.2.4-arm64_linux/upx /usr/bin; \
|
||||
upx --best --lzma /home/lemmy/lemmy_server; \
|
||||
upx-4.2.4-amd64_linux/upx --best --lzma lemmy_server; \
|
||||
fi
|
||||
|
||||
# amd64 base runner
|
||||
|
|
Loading…
Reference in a new issue