From a72b1a422485d4f2258e58c1f76f933cb24cf455 Mon Sep 17 00:00:00 2001 From: Felix Nie <hongtuo.nie@u.nus.edu> Date: Sun, 16 Mar 2025 19:08:45 +0000 Subject: [PATCH] fix(explorer): vertically center the Explorer toggle under mobile view (#1847) --- Dockerfile | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac5e8de..f8a6f26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ -FROM alpine:3.16 +FROM node:22-slim AS builder +WORKDIR /usr/src/app +COPY package.json . +COPY package-lock.json* . +RUN npm ci -RUN apk add --no-cache go hugo git make perl -RUN go install github.com/jackyzha0/hugo-obsidian@latest -ENV PATH="/root/go/bin:$PATH" -RUN git clone https://github.com/jackyzha0/quartz.git /quartz - -WORKDIR /quartz - -CMD ["make", "serve"] +FROM node:22-slim +WORKDIR /usr/src/app +COPY --from=builder /usr/src/app/ /usr/src/app/ +COPY . . +CMD ["npx", "quartz", "build", "--serve"] -- Gitblit v1.10.0