fix: set --jobs in the main Dockerfile

This commit is contained in:
Nikolai Rodionov 2023-03-16 16:55:34 +01:00
parent 1c29b32407
commit 3f6e88809e

View File

@ -2,7 +2,7 @@ FROM rust:1.66.1-alpine3.17 as builder
WORKDIR /src WORKDIR /src
RUN apk update && apk add --no-cache gcc musl-dev RUN apk update && apk add --no-cache gcc musl-dev
COPY ./ . COPY ./ .
RUN cargo build --release RUN cargo build --release --jobs 2
FROM alpine:3.17.1 FROM alpine:3.17.1
COPY --from=builder /src/target/release/cdh /bin/cdh COPY --from=builder /src/target/release/cdh /bin/cdh