mirror of
https://github.com/ZetaKebab/quartz.git
synced 2025-07-04 08:57:37 +00:00
Change provider from npm to nginx
This commit is contained in:
10
Dockerfile
10
Dockerfile
@ -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/
|
Reference in New Issue
Block a user