aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-02-02 21:46:36 +0000
committerMohamed Bassem <me@mbassem.com>2025-02-02 21:46:36 +0000
commitccd9159ba80d87a5cf1d80544f23faf69d93b1af (patch)
treee0b9fc0fbd0102a7c949d619eb0597522bdd0ac9
parentf1d2a80b28e567a80a95994c2a66f5952ee10aba (diff)
downloadkarakeep-ccd9159ba80d87a5cf1d80544f23faf69d93b1af.tar.zst
ci: Fix corepack issue in CI and docker build
-rw-r--r--docker/Dockerfile4
-rw-r--r--tooling/github/setup/action.yml2
2 files changed, 4 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 5cd35020..35aa1032 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -4,7 +4,9 @@ FROM node:22-alpine AS base
WORKDIR /app
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
-RUN corepack enable
+
+# https://github.com/hoarder-app/hoarder/issues/967
+RUN npm install -g corepack@0.31.0 && corepack enable
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat make g++ py3-pip linux-headers
diff --git a/tooling/github/setup/action.yml b/tooling/github/setup/action.yml
index 32b75db9..71836219 100644
--- a/tooling/github/setup/action.yml
+++ b/tooling/github/setup/action.yml
@@ -15,7 +15,7 @@ runs:
run: pnpm add -g turbo
- shell: bash
- run: corepack enable
+ run: npm install -g corepack@0.31.0 && corepack enable
- shell: bash
run: pnpm install