New Dockerfile
Deploy Quartz site to GitHub Pages / build (push) Failing after 12s Details

This commit is contained in:
Peaceultime 2023-12-14 15:15:22 +01:00
parent f212308c84
commit 14c60e7818
1 changed files with 3 additions and 6 deletions

View File

@ -1,11 +1,8 @@
FROM node:20-slim as builder FROM node:20-slim as builder
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY package.json . RUN git clone https://github.com/jackyzha0/quartz.git
COPY package-lock.json* . RUN cd quartz
RUN npm ci RUN npm ci
FROM node:20-slim COPY /workspace/Peaceultime/system-aspect /workspace/Peaceultime/system-aspect
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/ /usr/src/app/
COPY . .
CMD ["npx", "quartz", "build", "-d", "/workspace/Peaceultime/system-aspect", "-o", "/output"] CMD ["npx", "quartz", "build", "-d", "/workspace/Peaceultime/system-aspect", "-o", "/output"]