diff --git a/Dockerfile-backend b/Dockerfile-backend index a45d861..74f4cae 100644 --- a/Dockerfile-backend +++ b/Dockerfile-backend @@ -35,7 +35,7 @@ RUN --mount=type=cache,target=/lemmy/target set -ex; \ RUN --mount=type=cache,target=/lemmy/target set -ex; \ # Build with 16 codegen units 32-bit architectures due to build issues if [ "$(getconf LONG_BIT)" = "32" ]; then \ - export RUSTFLAGS="-Ccodegen-units=16"; \ + export RUSTFLAGS="-Ccodegen-units=16 ${RUSTFLAGS}"; \ fi; \ if [ "${RUST_RELEASE_MODE}" = "release" ]; then \ cargo clean --release; \ @@ -48,7 +48,7 @@ RUN --mount=type=cache,target=/lemmy/target set -ex; \ wget https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-${TARGETARCH}_linux.tar.xz; \ tar -xvf upx-4.2.4-${TARGETARCH}_linux.tar.xz; \ cp upx-4.2.4-${TARGETARCH}_linux/upx /usr/bin; \ - upx --best --lzma /home/lemmy/lemmy_server; \ + upx --best --lzma /lemmy/lemmy_server; \ fi; \ fi