13 lines
265 B
Docker
13 lines
265 B
Docker
FROM node:20-slim as builder
|
|
WORKDIR /usr/src/app
|
|
COPY package.json .
|
|
COPY package-lock.json* .
|
|
RUN npm ci
|
|
|
|
FROM node:20-slim
|
|
WORKDIR /usr/src/app
|
|
COPY --from=builder /usr/src/app/ /usr/src/app/
|
|
COPY . .
|
|
RUN rm -rf content
|
|
CMD ["npx", "quartz", "build", "--serve"]
|