Merge pull request #1451 from LemmyNet/update_cargo_chef
Use more recent version of cargo chef.
This commit is contained in:
commit
085c307b8b
2 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ ARG RUST_BUILDER_IMAGE=ekidd/rust-musl-builder:1.47.0
|
||||||
# Cargo chef plan
|
# Cargo chef plan
|
||||||
FROM $RUST_BUILDER_IMAGE as planner
|
FROM $RUST_BUILDER_IMAGE as planner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN cargo install cargo-chef --version 0.1.6
|
RUN cargo install cargo-chef
|
||||||
|
|
||||||
# Copy dirs
|
# Copy dirs
|
||||||
COPY ./ ./
|
COPY ./ ./
|
||||||
|
@ -15,7 +15,7 @@ RUN cargo chef prepare --recipe-path recipe.json
|
||||||
FROM $RUST_BUILDER_IMAGE as cacher
|
FROM $RUST_BUILDER_IMAGE as cacher
|
||||||
ARG CARGO_BUILD_TARGET=x86_64-unknown-linux-musl
|
ARG CARGO_BUILD_TARGET=x86_64-unknown-linux-musl
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN cargo install cargo-chef --version 0.1.6
|
RUN cargo install cargo-chef
|
||||||
COPY --from=planner /app/recipe.json ./recipe.json
|
COPY --from=planner /app/recipe.json ./recipe.json
|
||||||
RUN sudo chown -R rust:rust .
|
RUN sudo chown -R rust:rust .
|
||||||
RUN cargo chef cook --target ${CARGO_BUILD_TARGET} --recipe-path recipe.json
|
RUN cargo chef cook --target ${CARGO_BUILD_TARGET} --recipe-path recipe.json
|
||||||
|
|
|
@ -3,7 +3,7 @@ ARG RUST_BUILDER_IMAGE=ekidd/rust-musl-builder:1.47.0
|
||||||
# Cargo chef plan
|
# Cargo chef plan
|
||||||
FROM $RUST_BUILDER_IMAGE as planner
|
FROM $RUST_BUILDER_IMAGE as planner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN cargo install cargo-chef --version 0.1.6
|
RUN cargo install cargo-chef
|
||||||
|
|
||||||
# Copy dirs
|
# Copy dirs
|
||||||
COPY ./ ./
|
COPY ./ ./
|
||||||
|
@ -15,7 +15,7 @@ RUN cargo chef prepare --recipe-path recipe.json
|
||||||
FROM $RUST_BUILDER_IMAGE as cacher
|
FROM $RUST_BUILDER_IMAGE as cacher
|
||||||
ARG CARGO_BUILD_TARGET=x86_64-unknown-linux-musl
|
ARG CARGO_BUILD_TARGET=x86_64-unknown-linux-musl
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN cargo install cargo-chef --version 0.1.6
|
RUN cargo install cargo-chef
|
||||||
COPY --from=planner /app/recipe.json ./recipe.json
|
COPY --from=planner /app/recipe.json ./recipe.json
|
||||||
RUN sudo chown -R rust:rust .
|
RUN sudo chown -R rust:rust .
|
||||||
RUN cargo chef cook --release --target ${CARGO_BUILD_TARGET} --recipe-path recipe.json
|
RUN cargo chef cook --release --target ${CARGO_BUILD_TARGET} --recipe-path recipe.json
|
||||||
|
|
Loading…
Reference in a new issue