* Upgrade Dockerfile to node 22

* Pin pnpm to pnpm@10.4.0
This commit is contained in:
Philipinho 2025-03-06 18:29:15 +00:00
parent cdea149ce7
commit 56d9e46fd3

View File

@ -1,4 +1,4 @@
FROM node:21-alpine AS base FROM node:22-alpine AS base
LABEL org.opencontainers.image.source="https://github.com/docmost/docmost" LABEL org.opencontainers.image.source="https://github.com/docmost/docmost"
FROM base AS builder FROM base AS builder
@ -7,7 +7,7 @@ WORKDIR /app
COPY . . COPY . .
RUN npm install -g pnpm RUN npm install -g pnpm@10.4.0
RUN pnpm install --frozen-lockfile RUN pnpm install --frozen-lockfile
RUN pnpm build RUN pnpm build