diff --git a/Dockerfile b/Dockerfile index 0ed176321..d971c346d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,8 @@ RUN apk add --no-cache libc6-compat curl bash RUN apk update COPY . . +# Install working version of corepack (See https://github.com/nodejs/corepack/issues/612) +RUN npm install -g corepack@0.31.0 && corepack --version RUN corepack enable pnpm && pnpm install --recursive --frozen-lockfile # Copy static data as it is not part of the build @@ -17,6 +19,8 @@ COPY static-data ./static-data ARG SKIP_ENV_VALIDATION='true' ARG CI='true' ARG DISABLE_REDIS_LOGS='true' +# Install working version of corepack (See https://github.com/nodejs/corepack/issues/612) +RUN npm install -g corepack@0.31.0 && corepack --version RUN corepack enable pnpm && pnpm build FROM base AS runner @@ -66,4 +70,4 @@ ENV AUTH_PROVIDERS='credentials' ENV NODE_ENV='production' ENTRYPOINT [ "/app/entrypoint.sh" ] -CMD ["sh", "run.sh"] \ No newline at end of file +CMD ["sh", "run.sh"]