From 7ad37a3de06a7481b6520ff6cb5ceea0a63b08d6 Mon Sep 17 00:00:00 2001 From: Adnan Zahir Date: Thu, 29 Oct 2026 12:46:33 +0700 Subject: [PATCH] Hub image: allow limiting build jobs on small servers Co-Authored-By: Claude Opus 5.5 --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index f2db2d6..aa569c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,8 @@ FROM rust:1.99-bookworm AS build WORKDIR /src COPY . . 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 FROM debian:bookworm-slim