From 83f5f02a8804e62726a880fa8d8fb8089520bb97 Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Tue, 13 Dec 2022 00:23:02 -0500 Subject: [PATCH] fix mold import --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9a584ed..642be0d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ # Step -1: Grab mold FROM lukemathwalker/cargo-chef as rust-base -RUN apt-get update && apt-get install -y curl +RUN apt-get update && apt-get install -y --no-install-recommends curl clang ARG MOLD_VERSION=1.7.1 -RUN apt-get update && apt-get install -y --no-install-recommends clang RUN curl -sSL https://github.com/rui314/mold/releases/download/v${MOLD_VERSION}/mold-${MOLD_VERSION}-x86_64-linux.tar.gz | tar xzv && \ mv mold-${MOLD_VERSION}-x86_64-linux/bin/mold /mold && \ rm -rf mold-${MOLD_VERSION}-x86_64-linux @@ -20,7 +19,6 @@ RUN cargo chef prepare --recipe-path recipe.json FROM rust-base as cacher WORKDIR /app RUN cargo install cargo-chef -COPY --from=mold /mold /mold COPY --from=planner /app/recipe.json recipe.json RUN cargo chef cook --release --recipe-path recipe.json