Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ubergeek77 authored Nov 17, 2024
1 parent fba6611 commit 35b30df
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 @@ -33,7 +33,7 @@ RUN --mount=type=cache,target=/lemmy/target set -ex; \

# Release build
RUN --mount=type=cache,target=/lemmy/target set -ex; \
# Build with 16 codegen units 32-bit architectures due to build issues
# Build with 16 codegen units 32-bit architectures due to build issues
if [[ "$(getconf LONG_BIT)" == "32" ]]; then; \
RUSTFLAGS='RUSTFLAGS=-Ccodegen-units=16'; \
fi; \
Expand All @@ -44,7 +44,7 @@ RUN --mount=type=cache,target=/lemmy/target set -ex; \

# Compress the binary with upx
# Skip this step on 32-but architectures
if [[ "$(getconf LONG_BIT)" == "64" ]]; then
if [[ "$(getconf LONG_BIT)" == "64" ]]; then; \
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; \
Expand Down

0 comments on commit 35b30df

Please sign in to comment.