mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-07-22 03:00:29 +00:00
17 lines
431 B
Docker
17 lines
431 B
Docker
FROM node:22-slim AS builder
|
|
|
|
# install git to install plugins
|
|
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /usr/src/app
|
|
COPY package.json .
|
|
COPY package-lock.json* .
|
|
COPY quartz/ ./quartz/
|
|
COPY quartz.lock.json .
|
|
RUN npm ci; npx quartz plugin install
|
|
|
|
FROM node:22-slim
|
|
WORKDIR /usr/src/app
|
|
COPY --from=builder /usr/src/app/ /usr/src/app/
|
|
COPY . .
|
|
CMD ["npx", "quartz", "build", "--serve"]
|