Files
outline/Dockerfile.base
T
2025-12-29 16:20:37 -05:00

26 lines
495 B
Docker

ARG APP_PATH=/opt/outline
FROM node:22.21.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 corepack enable
RUN yarn install --immutable --network-timeout 1000000 && \
yarn cache clean
COPY . .
ARG CDN_URL
RUN yarn build
RUN rm -rf node_modules
RUN yarn install --immutable --network-timeout 1000000 && \
yarn cache clean
ENV PORT=3000