mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
fix(docker): not building due to CKEditor patches
This commit is contained in:
parent
8c17c5d7dc
commit
38ea450b07
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user