Skip to content

Commit

Permalink
Enable cargo-chef
Browse files Browse the repository at this point in the history
  • Loading branch information
riordanp committed Apr 8, 2023
1 parent 66ef1c0 commit 8e0ec88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# 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

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

Expand Down

0 comments on commit 8e0ec88

Please sign in to comment.