diff --git a/docker/app.Dockerfile b/docker/app.Dockerfile index 3c97240..c87472f 100644 --- a/docker/app.Dockerfile +++ b/docker/app.Dockerfile @@ -21,7 +21,7 @@ COPY apps/ apps/ RUN cargo fetch # Build the binary -RUN cargo build --release --package app --target ${TARGET} +RUN cargo build --release --package app --target ${TARGET} -j $(nproc) # ---- Stage 2: Runtime ---- FROM debian:bookworm-slim AS runtime diff --git a/docker/email-worker.Dockerfile b/docker/email-worker.Dockerfile index 4cae48d..ab59063 100644 --- a/docker/email-worker.Dockerfile +++ b/docker/email-worker.Dockerfile @@ -16,7 +16,7 @@ COPY libs/ libs/ COPY apps/ apps/ RUN cargo fetch -RUN cargo build --release --package email-server --target ${TARGET} +RUN cargo build --release --package email-server --target ${TARGET} -j $(nproc) # ---- Stage 2: Runtime ---- FROM debian:bookworm-slim diff --git a/docker/git-hook.Dockerfile b/docker/git-hook.Dockerfile index f1dcaee..0d2f1c2 100644 --- a/docker/git-hook.Dockerfile +++ b/docker/git-hook.Dockerfile @@ -16,7 +16,7 @@ COPY libs/ libs/ COPY apps/ apps/ RUN cargo fetch -RUN cargo build --release --package git-hook --target ${TARGET} +RUN cargo build --release --package git-hook --target ${TARGET} -j $(nproc) # ---- Stage 2: Runtime ---- FROM debian:bookworm-slim diff --git a/docker/gitserver.Dockerfile b/docker/gitserver.Dockerfile index aee7442..f8961c5 100644 --- a/docker/gitserver.Dockerfile +++ b/docker/gitserver.Dockerfile @@ -16,7 +16,7 @@ COPY libs/ libs/ COPY apps/ apps/ RUN cargo fetch -RUN cargo build --release --package gitserver --target ${TARGET} +RUN cargo build --release --package gitserver --target ${TARGET} -j $(nproc) # ---- Stage 2: Runtime ---- FROM debian:bookworm-slim AS runtime diff --git a/docker/migrate.Dockerfile b/docker/migrate.Dockerfile index 69defc2..7ec200b 100644 --- a/docker/migrate.Dockerfile +++ b/docker/migrate.Dockerfile @@ -16,7 +16,7 @@ COPY libs/ libs/ COPY apps/ apps/ RUN cargo fetch -RUN cargo build --release --package migrate-cli --target ${TARGET} +RUN cargo build --release --package migrate-cli --target ${TARGET} -j $(nproc) # ---- Stage 2: Runtime ---- FROM debian:bookworm-slim diff --git a/docker/operator.Dockerfile b/docker/operator.Dockerfile index 2af006d..ae2ccc1 100644 --- a/docker/operator.Dockerfile +++ b/docker/operator.Dockerfile @@ -16,7 +16,7 @@ COPY libs/ libs/ COPY apps/ apps/ RUN cargo fetch -RUN cargo build --release --package operator --target ${TARGET} +RUN cargo build --release --package operator --target ${TARGET} -j $(nproc) # ---- Stage 2: Runtime ---- FROM debian:bookworm-slim