mirror of
https://github.com/outline/outline.git
synced 2025-12-30 15:30:12 -06:00
20 lines
412 B
Docker
20 lines
412 B
Docker
ARG APP_PATH=/opt/outline
|
|
FROM node:18-alpine AS deps
|
|
|
|
ARG APP_PATH
|
|
WORKDIR $APP_PATH
|
|
COPY ./package.json ./yarn.lock ./
|
|
COPY ./patches ./patches
|
|
|
|
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
|