Dockerfile: try to fix issue with cargo-chef not building

This commit is contained in:
Serge Farny 2024-03-01 11:58:02 +01:00
parent 5629017a8a
commit acef7278a0
1 changed files with 2 additions and 4 deletions

View File

@ -1,9 +1,7 @@
# syntax = docker/dockerfile:1.2
# Base image containing all binaries, deployed to ghcr.io/blockworks-foundation/mango-v4:latest
FROM rust:1.69.0-bullseye as base
RUN cargo install cargo-chef --locked
RUN rustup component add rustfmt
RUN apt-get update && apt-get -y install clang cmake
FROM lukemathwalker/cargo-chef:latest-rust-1.69-slim-bullseye as base
RUN apt-get update && apt-get -y install clang cmake perl libfindbin-libs-perl
WORKDIR /app
FROM base as plan