mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: Docker build with Yarn 4 (#11031)
* Add missing corepack * Serialize plugin gen to protect memory * fix: Missing Yarn4 config * Prune dev deps
This commit is contained in:
+2
-4
@@ -3,7 +3,7 @@ FROM node:22.21.0 AS deps
|
||||
|
||||
ARG APP_PATH
|
||||
WORKDIR $APP_PATH
|
||||
COPY ./package.json ./yarn.lock ./
|
||||
COPY ./package.json ./yarn.lock ./.yarnrc.yml ./
|
||||
COPY ./patches ./patches
|
||||
|
||||
RUN apt-get update && apt-get install -y cmake
|
||||
@@ -17,9 +17,7 @@ COPY . .
|
||||
ARG CDN_URL
|
||||
RUN yarn build
|
||||
|
||||
RUN rm -rf node_modules
|
||||
|
||||
RUN yarn install --immutable --network-timeout 1000000 && \
|
||||
RUN yarn workspaces focus --production && \
|
||||
yarn cache clean
|
||||
|
||||
ENV PORT=3000
|
||||
|
||||
Reference in New Issue
Block a user