From 4167743a342c8168782957e5f7edc4f63a3d770b Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 17 Dec 2024 19:01:24 -0800 Subject: [PATCH] feat: Install npm packages in /npm-install directory --- benchmark/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/benchmark/Dockerfile b/benchmark/Dockerfile index 1eefde4b2..8f0b44f08 100644 --- a/benchmark/Dockerfile +++ b/benchmark/Dockerfile @@ -19,9 +19,10 @@ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ apt-get install -y nodejs && \ rm -rf /var/lib/apt/lists/* && \ - -# install these in /npm-install ai! - npm install -g \ + mkdir -p /npm-install && \ + cd /npm-install && \ + npm init -y && \ + npm install \ jest \ @babel/core@7.25.2 \ @exercism/babel-preset-javascript@0.2.1 \