Disable cargo-chef in Docker build (#326)

* Disable cargo chef - patches are broken

* Disable cargo chef
This commit is contained in:
riordanp 2022-12-09 09:07:49 +00:00 committed by GitHub
parent 2ca5354e48
commit 17c00bd0ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# syntax = docker/dockerfile:1.2
# Base image containing all binaries, deployed to gcr.io/mango-markets/mango-v4:latest
FROM rust:1.60 as base
RUN cargo install cargo-chef --locked
# RUN cargo install cargo-chef --locked
RUN rustup component add rustfmt
RUN apt-get update && apt-get -y install clang cmake
WORKDIR /app
@ -12,14 +12,14 @@ COPY . .
RUN sed -i 's|lib/\*|lib/checked_math|' Cargo.toml
# Hack to prevent local serum_dex manifests conflicting with cargo dependency
RUN rm -rf anchor/tests
RUN cargo chef prepare --bin keeper --recipe-path recipe-keeper.json
RUN cargo chef prepare --bin liquidator --recipe-path recipe-liquidator.json
# RUN cargo chef prepare --bin keeper --recipe-path recipe-keeper.json
# RUN cargo chef prepare --bin liquidator --recipe-path recipe-liquidator.json
FROM base as build
COPY --from=plan /app/recipe-*.json .
RUN cargo chef cook --release --recipe-path recipe-keeper.json --bin keeper
RUN cargo chef cook --release --recipe-path recipe-liquidator.json --bin liquidator
COPY . .
# RUN cargo chef cook --release --recipe-path recipe-keeper.json --bin keeper
# RUN cargo chef cook --release --recipe-path recipe-liquidator.json --bin liquidator
RUN cargo build --release --bin keeper --bin liquidator
FROM debian:bullseye-slim as run