Enable cargo-chef
This commit is contained in:
parent
66ef1c01bb
commit
8e0ec88d2c
|
@ -1,7 +1,7 @@
|
|||
# syntax = docker/dockerfile:1.2
|
||||
# Base image containing all binaries, deployed to gcr.io/mango-markets/mango-geyser-services:latest
|
||||
FROM rust:1.65.0 as base
|
||||
# RUN cargo install cargo-chef
|
||||
RUN cargo install cargo-chef
|
||||
RUN rustup component add rustfmt
|
||||
RUN apt-get update && apt-get install -y clang cmake ssh
|
||||
WORKDIR /app
|
||||
|
@ -9,11 +9,11 @@ WORKDIR /app
|
|||
FROM base AS plan
|
||||
COPY . .
|
||||
WORKDIR /app
|
||||
# RUN cargo chef prepare --recipe-path recipe.json
|
||||
RUN cargo chef prepare --recipe-path recipe.json
|
||||
|
||||
FROM base as build
|
||||
# COPY --from=plan /app/recipe.json recipe.json
|
||||
# RUN cargo chef cook --release --recipe-path recipe.json
|
||||
COPY --from=plan /app/recipe.json recipe.json
|
||||
RUN cargo chef cook --release --recipe-path recipe.json
|
||||
COPY . .
|
||||
RUN cargo build --release --bin service-mango-fills --bin service-mango-pnl --bin service-mango-orderbook
|
||||
|
||||
|
|
Loading…
Reference in New Issue