From 4c7f6b913e6a8fd8e174b72f25e68393aee87dbd Mon Sep 17 00:00:00 2001 From: Andreas Dueren Date: Mon, 14 Jul 2025 21:02:34 -0600 Subject: [PATCH] Fix pnpm installation and build process --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 28ec087..eb75e4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,14 +5,17 @@ MAINTAINER Cloudron Support # Install Node.js 20 and pnpm RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ apt-get install -y nodejs && \ - npm install -g pnpm@latest + npm install -g pnpm@9.12.4 # Set up application directory WORKDIR /app/code # Clone and build Docmost RUN git clone https://github.com/docmost/docmost.git . && \ - pnpm install && \ + rm -rf .git && \ + corepack enable && \ + corepack prepare pnpm@latest --activate && \ + pnpm install --frozen-lockfile && \ pnpm build # Create necessary directories