mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 15:56:29 +01:00
fix(docker): not building due to CKEditor patches
This commit is contained in:
@@ -4,7 +4,8 @@ FROM node:22.15.0-bullseye-slim AS builder
|
||||
# Install native dependencies since we might be building cross-platform.
|
||||
WORKDIR /usr/src/app/build
|
||||
COPY ./dist/package.json ./dist/pnpm-lock.yaml ./docker/pnpm-workspace.yaml /usr/src/app/
|
||||
RUN pnpm install --frozen-lockfile --prod && pnpm rebuild
|
||||
# We have to use --no-frozen-lockfile due to CKEditor patches
|
||||
RUN pnpm install --no-frozen-lockfile --prod && pnpm rebuild
|
||||
|
||||
FROM node:22.15.0-bullseye-slim
|
||||
# Install only runtime dependencies
|
||||
|
||||
@@ -4,7 +4,8 @@ FROM node:22.15.0-alpine AS builder
|
||||
# Install native dependencies since we might be building cross-platform.
|
||||
WORKDIR /usr/src/app
|
||||
COPY ./dist/package.json ./dist/pnpm-lock.yaml ./docker/pnpm-workspace.yaml /usr/src/app/
|
||||
RUN pnpm install --frozen-lockfile --prod && pnpm rebuild
|
||||
# We have to use --no-frozen-lockfile due to CKEditor patches
|
||||
RUN pnpm install --no-frozen-lockfile --prod && pnpm rebuild
|
||||
|
||||
FROM node:22.15.0-alpine
|
||||
# Install runtime dependencies
|
||||
|
||||
Reference in New Issue
Block a user