Skip to content

Commit

Permalink
Fix working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ubergeek77 authored Nov 18, 2024
1 parent 52132bb commit 30dde93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile-backend
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand All @@ -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

Expand Down

0 comments on commit 30dde93

Please sign in to comment.