Files
outline/Dockerfile.base
T
codegen-sh[bot] 05dbfa47b5 Update Node.js version requirement to v20.12.0 minimum
- Update package.json engines to require Node >=20.12.0
- Update Dockerfile to use node:20.12.0-slim base image
- Update Dockerfile.base to use node:20.12.0 base image
- Ensures consistent Node.js version across all environments
2025-10-20 12:29:10 +00:00

25 lines
519 B
Docker

ARG APP_PATH=/opt/outline
FROM node:20.12.0 AS deps
ARG APP_PATH
WORKDIR $APP_PATH
COPY ./package.json ./yarn.lock ./
COPY ./patches ./patches
RUN apt-get update && apt-get install -y cmake
ENV NODE_OPTIONS="--max-old-space-size=24000"
RUN yarn install --no-optional --frozen-lockfile --network-timeout 1000000 && \
yarn cache clean
COPY . .
ARG CDN_URL
RUN yarn build
RUN rm -rf node_modules
RUN yarn install --production=true --frozen-lockfile --network-timeout 1000000 && \
yarn cache clean
ENV PORT=3000