mirror of
https://github.com/outline/outline.git
synced 2026-11-25 23:24:06 +03:00
27 lines
475 B
Docker
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
|