Hub image: allow limiting build jobs on small servers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user