From c5d0278491a9ae54b000e076f33ba8b91e73c07d Mon Sep 17 00:00:00 2001 From: Lucid Date: Fri, 5 Dec 2025 18:16:33 -0500 Subject: [PATCH] Fix dockerfile --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2e33410..57c37f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,16 @@ FROM base AS deps RUN apk add --no-cache libc6-compat WORKDIR /app +# Enable Corepack +RUN corepack enable + +# Set Yarn to the latest stable version +RUN yarn set version stable + # Install dependencies based on the preferred package manager COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./ RUN \ - if [ -f yarn.lock ]; then yarn --frozen-lockfile; \ + if [ -f yarn.lock ]; then yarn install --immutable; \ elif [ -f package-lock.json ]; then npm ci; \ elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \ else echo "Lockfile not found." && exit 1; \