From 9b825de25d36c816804881de6f6579da4635c199 Mon Sep 17 00:00:00 2001 From: Brace Sproul Date: Wed, 28 May 2025 14:47:37 -0700 Subject: [PATCH] fix: Corepack and node software (#39) * fix: Update base dockerfile to include py and js software * fix: Corepack and node software --- apps/open-swe/e2b.Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/open-swe/e2b.Dockerfile b/apps/open-swe/e2b.Dockerfile index c1c66da9..3b63976a 100644 --- a/apps/open-swe/e2b.Dockerfile +++ b/apps/open-swe/e2b.Dockerfile @@ -15,8 +15,15 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \ && apt-get install -y nodejs \ && rm -rf /var/lib/apt/lists/* -# Install yarn and pnpm globally -RUN npm install -g yarn pnpm +# Update corepack to latest version (to avoid outdated signature issues) +RUN npm install -g corepack@latest + +# Enable corepack for yarn and pnpm (creates shims) +RUN corepack enable yarn pnpm + +# Pre-download specific versions to avoid download on first use +RUN corepack prepare yarn@stable --activate \ + && corepack prepare pnpm@latest --activate # Set the working directory WORKDIR /app \ No newline at end of file