mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-02-06 00:54:47 +00:00
Removing upx. (#5388)
This commit is contained in:
parent
a56105022a
commit
8be60a4418
1 changed files with 0 additions and 10 deletions
|
@ -38,11 +38,6 @@ RUN --mount=type=cache,target=/lemmy/target set -ex; \
|
|||
cargo clean --release; \
|
||||
cargo build --features "${CARGO_BUILD_FEATURES}" --release; \
|
||||
mv target/"${RUST_RELEASE_MODE}"/lemmy_server ./lemmy_server; \
|
||||
#
|
||||
# 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; \
|
||||
./upx-4.2.4-amd64_linux/upx --best --lzma lemmy_server; \
|
||||
fi
|
||||
|
||||
# ARM64 builder
|
||||
|
@ -76,11 +71,6 @@ RUN --mount=type=cache,target=./target,uid=10001,gid=10001 set -ex; \
|
|||
cargo clean --release; \
|
||||
cargo build --features "${CARGO_BUILD_FEATURES}" --release; \
|
||||
mv "./target/$CARGO_BUILD_TARGET/$RUST_RELEASE_MODE/lemmy_server" /home/lemmy/lemmy_server; \
|
||||
#
|
||||
# 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; \
|
||||
./upx-4.2.4-amd64_linux/upx --best --lzma lemmy_server; \
|
||||
fi
|
||||
|
||||
# amd64 base runner
|
||||
|
|
Loading…
Reference in a new issue