Change provider from npm to nginx

This commit is contained in:
2025-07-01 21:57:58 +02:00
parent 767037a66f
commit 158a19d35e
5 changed files with 31 additions and 14 deletions

View File

@ -15,9 +15,15 @@ COPY package.json .
COPY package-lock.json* .
RUN npm ci
FROM node:22-slim
FROM node:22-slim AS quartz
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/ /usr/src/app/
COPY . .
COPY --from=convert /usr/src/app/ /usr/src/app/content/
CMD ["npx", "quartz", "build", "--serve"]
RUN npx quartz build
FROM nginx:latest
WORKDIR /usr/share/nginx/html
COPY --from=quartz /usr/src/app/public/ /usr/share/nginx/html/
WORKDIR /etc/nginx/
COPY custom/nginx/default.conf /etc/nginx/conf.d/