From f31f7bc9934c86cf6efc1722e901107935172925 Mon Sep 17 00:00:00 2001 From: "A. F. Dudley" Date: Sun, 18 Feb 2024 01:08:16 -0500 Subject: [PATCH] fix first pass --- .../cerc-optimism-contracts/Dockerfile | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/stack_orchestrator/data/container-build/cerc-optimism-contracts/Dockerfile b/stack_orchestrator/data/container-build/cerc-optimism-contracts/Dockerfile index 2499df0a..b6dd90e9 100644 --- a/stack_orchestrator/data/container-build/cerc-optimism-contracts/Dockerfile +++ b/stack_orchestrator/data/container-build/cerc-optimism-contracts/Dockerfile @@ -3,12 +3,17 @@ FROM cerc/foundry:local # Install node (local foundry is a debian based image) RUN apt-get update \ && apt-get install -y curl wget \ - && curl --silent --location https://deb.nodesource.com/setup_16.x | bash - \ - && apt-get update \ - && apt-get install -y nodejs git busybox jq \ + && apt-get install -y git busybox jq python3 make gcc g++ + +RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash \ + && export NVM_DIR="$HOME/.nvm" \ + && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \ + && nvm install 16.16.0 \ && node -v -RUN corepack enable \ +SHELL ["/bin/bash", "-c"] +RUN source $HOME/.bashrc \ + && corepack enable \ && yarn --version WORKDIR /app @@ -16,7 +21,10 @@ WORKDIR /app # Copy optimism repo contents COPY . . -RUN echo "Building optimism" && \ - pnpm install && pnpm build +SHELL ["/bin/bash", "-c"] +RUN source $HOME/.bashrc \ + && echo "Building optimism" \ + && pnpm i -g pnpm@8.15.3 \ + && pnpm install && pnpm build WORKDIR /app/packages/contracts-bedrock