Disable cargo-chef in Docker build (#326)
* Disable cargo chef - patches are broken * Disable cargo chef
This commit is contained in:
parent
2ca5354e48
commit
17c00bd0ab
10
Dockerfile
10
Dockerfile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue