fix(docker): not building due to CKEditor patches

This commit is contained in:
Elian Doran 2025-05-10 11:10:45 +03:00
parent 8c17c5d7dc
commit 38ea450b07
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,8 @@ FROM node:22.15.0-bullseye-slim AS builder
# Install native dependencies since we might be building cross-platform. # Install native dependencies since we might be building cross-platform.
WORKDIR /usr/src/app/build WORKDIR /usr/src/app/build
COPY ./dist/package.json ./dist/pnpm-lock.yaml ./docker/pnpm-workspace.yaml /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-bullseye-slim FROM node:22.15.0-bullseye-slim
# Install only runtime dependencies # Install only runtime dependencies

View File

@ -4,7 +4,8 @@ FROM node:22.15.0-alpine AS builder
# Install native dependencies since we might be building cross-platform. # Install native dependencies since we might be building cross-platform.
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY ./dist/package.json ./dist/pnpm-lock.yaml ./docker/pnpm-workspace.yaml /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 FROM node:22.15.0-alpine
# Install runtime dependencies # Install runtime dependencies