Dockerfile: do not hardcode --jobs
switch when cargo build
'ing, but allow build args.
This commit is contained in:
parent
1ce8800dc0
commit
48b227b529
|
@ -1,7 +1,10 @@
|
|||
FROM rust:latest
|
||||
|
||||
ARG BUILD_ARGS
|
||||
|
||||
COPY . /usr/src/udpt
|
||||
WORKDIR /usr/src/udpt
|
||||
|
||||
RUN cargo build --release -j4
|
||||
RUN cargo build --release ${BUILD_ARGS}
|
||||
|
||||
CMD ["target/release/udpt-rs", "-c", "/usr/src/udpt/udpt.toml"]
|
||||
|
|
Loading…
Reference in a new issue