2024-09-01 10:30:00 +00:00
|
|
|
FROM node:20-slim AS builder
|
2024-04-05 00:03:11 +00:00
|
|
|
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 . .
|
2024-04-05 23:27:41 +00:00
|
|
|
RUN rm -rf content
|
2024-04-05 00:03:11 +00:00
|
|
|
CMD ["npx", "quartz", "build", "--serve"]
|