mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
c4479e257e
* Initial plan * chore: upgrade Node.js base image from 22.21.0 to 24.14.1 (LTS) * chore: include node version in node_modules cache keys * Add canary build for docker changes * fix: Try docker driver --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com>
24 lines
468 B
Docker
24 lines
468 B
Docker
ARG APP_PATH=/opt/outline
|
|
FROM node:24.14.1 AS deps
|
|
|
|
ARG APP_PATH
|
|
WORKDIR $APP_PATH
|
|
COPY ./package.json ./yarn.lock ./.yarnrc.yml ./
|
|
COPY ./patches ./patches
|
|
|
|
RUN apt-get update && apt-get install -y cmake
|
|
ENV NODE_OPTIONS="--max-old-space-size=24000"
|
|
|
|
RUN corepack enable
|
|
RUN yarn install --immutable --network-timeout 1000000 && \
|
|
yarn cache clean
|
|
|
|
COPY . .
|
|
ARG CDN_URL
|
|
RUN yarn build
|
|
|
|
RUN yarn workspaces focus --production && \
|
|
yarn cache clean
|
|
|
|
ENV PORT=3000
|