Hub image: allow limiting build jobs on small servers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 12:46:33 +07:00
parent 6cb85004fb
commit 7ad37a3de0

View File

@@ -10,6 +10,8 @@ FROM rust:1.99-bookworm AS build
WORKDIR /src WORKDIR /src
COPY . . COPY . .
COPY --from=web /web/dist ./web/dist COPY --from=web /web/dist ./web/dist
# On a small server: docker build --build-arg CARGO_BUILD_JOBS=2 . (unset means one job per core)
ARG CARGO_BUILD_JOBS
RUN cargo build --release -p lunehub RUN cargo build --release -p lunehub
FROM debian:bookworm-slim FROM debian:bookworm-slim