Skip to content

Commit

Permalink
build: Remove cargo-chef.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Jan 12, 2025
1 parent 2069bb5 commit 0bc216f
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions scripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ ENV PATH=/root/.cargo/bin:$PATH
COPY .cargo .cargo
COPY rust-toolchain.toml .
RUN rustup update
RUN cargo install cargo-chef --version ^0.1
# RUN cargo install cargo-chef --version ^0.1

FROM base-gnu AS plan-gnu
COPY Cargo* .
COPY crates crates
COPY legacy legacy
RUN cargo chef prepare --recipe-path recipe.json
# FROM base-gnu AS plan-gnu
# COPY Cargo* .
# COPY crates crates
# COPY legacy legacy
# RUN cargo chef prepare --recipe-path recipe.json

FROM base-gnu AS build-gnu
ENV RUSTFLAGS "-C strip=symbols"
COPY --from=plan-gnu /app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json
# COPY --from=plan-gnu /app/recipe.json recipe.json
# RUN cargo chef cook --release --recipe-path recipe.json
COPY Cargo* .
COPY crates crates
COPY legacy legacy
Expand Down Expand Up @@ -67,16 +67,16 @@ WORKDIR /app
COPY rust-toolchain.toml .
RUN rustup update && rustup target add x86_64-unknown-linux-musl

FROM base-musl-amd64 AS plan-musl-amd64
COPY Cargo* .
COPY crates crates
COPY legacy legacy
RUN cargo chef prepare --recipe-path recipe.json
# FROM base-musl-amd64 AS plan-musl-amd64
# COPY Cargo* .
# COPY crates crates
# COPY legacy legacy
# RUN cargo chef prepare --recipe-path recipe.json

FROM base-musl-amd64 AS build-musl-amd64
ENV RUSTFLAGS "-C strip=symbols"
COPY --from=plan-musl-amd64 /app/recipe.json recipe.json
RUN cargo chef cook --release --target x86_64-unknown-linux-musl --recipe-path recipe.json
# COPY --from=plan-musl-amd64 /app/recipe.json recipe.json
# RUN cargo chef cook --release --target x86_64-unknown-linux-musl --recipe-path recipe.json
COPY Cargo* .
COPY crates crates
COPY legacy legacy
Expand Down Expand Up @@ -111,21 +111,21 @@ RUN apt install --no-install-recommends -y libssl-dev pkg-config musl-tools wget
# ENV OPENSSL_STATIC true
# ENV OPENSSL_DIR /musl

RUN cargo install cargo-chef --version ^0.1
# RUN cargo install cargo-chef --version ^0.1
WORKDIR /app
COPY rust-toolchain.toml .
RUN rustup update && rustup target add aarch64-unknown-linux-musl

FROM base-musl-arm64 AS plan-musl-arm64
COPY Cargo* .
COPY crates crates
COPY legacy legacy
RUN cargo chef prepare --recipe-path recipe.json
# FROM base-musl-arm64 AS plan-musl-arm64
# COPY Cargo* .
# COPY crates crates
# COPY legacy legacy
# RUN cargo chef prepare --recipe-path recipe.json

FROM base-musl-arm64 AS build-musl-arm64
ENV RUSTFLAGS "-C strip=symbols"
COPY --from=plan-musl-arm64 /app/recipe.json recipe.json
RUN cargo chef cook --release --target aarch64-unknown-linux-musl --recipe-path recipe.json
# COPY --from=plan-musl-arm64 /app/recipe.json recipe.json
# RUN cargo chef cook --release --target aarch64-unknown-linux-musl --recipe-path recipe.json
COPY Cargo* .
COPY crates crates
COPY legacy legacy
Expand Down

0 comments on commit 0bc216f

Please sign in to comment.