Skip to content

Commit

Permalink
Why is this not the default for Rust...
Browse files Browse the repository at this point in the history
  • Loading branch information
ubergeek77 authored Jun 7, 2024
1 parent 1ad9c72 commit 7259f1c
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 @@ -24,15 +24,15 @@ COPY . ./
# Debug build
RUN --mount=type=cache,target=/lemmy/target set -ex; \
if [ "${RUST_RELEASE_MODE}" = "debug" ]; then \
RUST_BACKTRACE=1 cargo build --features "${CARGO_BUILD_FEATURES}"; \
RUST_BACKTRACE=full cargo build --features "${CARGO_BUILD_FEATURES}"; \
mv target/"${RUST_RELEASE_MODE}"/lemmy_server ./lemmy_server; \
fi

# Release build
RUN --mount=type=cache,target=/lemmy/target set -ex; \
if [ "${RUST_RELEASE_MODE}" = "release" ]; then \
cargo clean --release; \
RUST_BACKTRACE=1 cargo build --features "${CARGO_BUILD_FEATURES}" --release; \
RUST_BACKTRACE=full cargo build --features "${CARGO_BUILD_FEATURES}" --release; \
mv target/"${RUST_RELEASE_MODE}"/lemmy_server ./lemmy_server; \
fi

Expand Down

0 comments on commit 7259f1c

Please sign in to comment.