Files
outline/Dockerfile.base
T
2025-02-22 18:25:51 -05:00

27 lines
475 B
Docker

ARG APP_PATH=/opt/outline
FROM node:20-slim AS deps
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
python3
ARG APP_PATH
WORKDIR $APP_PATH
COPY ./package.json ./yarn.lock ./
COPY ./patches ./patches
RUN yarn install --no-optional --frozen-lockfile && \
yarn cache clean
COPY . .
ARG CDN_URL
RUN yarn build
RUN rm -rf node_modules
RUN yarn install --production=true --frozen-lockfile && \
yarn cache clean
ENV PORT=3000