From 8e0ec88d2c2e9fa27b00fedd5668542552dca779 Mon Sep 17 00:00:00 2001 From: Riordan Panayides Date: Sat, 8 Apr 2023 02:32:17 +0100 Subject: [PATCH] Enable cargo-chef --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 418f711..b93a02f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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