Skip to content

Commit da0a062

Browse files
committed
feat: docker support for v4 (closes #530)
1 parent f66d2c2 commit da0a062

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:20-slim as builder
2+
WORKDIR /usr/src/app
3+
COPY package.json .
4+
COPY package-lock.json* .
5+
RUN npm ci
6+
7+
FROM node:20-slim
8+
WORKDIR /usr/src/app
9+
COPY --from=builder /usr/src/app/ /usr/src/app/
10+
COPY . .
11+
CMD ["npx", "quartz", "build", "--serve"]

docs/features/Docker Support.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Quartz comes shipped with a Docker image that will allow you to preview your Quartz locally without installing Node.
2+
3+
You can run the below one-liner to run Quartz in Docker.
4+
5+
```sh
6+
docker run --rm -itp 8080:8080 $(docker build -q .)
7+
```

docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This will guide you through initializing your Quartz with content. Once you've d
3030
3131
## 🔧 Features
3232

33-
- [[Obsidian compatibility]], [[full-text search]], [[graph view]], note transclusion, [[wikilinks]], [[backlinks]], [[Latex]], [[syntax highlighting]], [[popover previews]], and [many more](./features) right out of the box
33+
- [[Obsidian compatibility]], [[full-text search]], [[graph view]], note transclusion, [[wikilinks]], [[backlinks]], [[Latex]], [[syntax highlighting]], [[popover previews]], [[Docker Support]], and [many more](./features) right out of the box
3434
- Hot-reload for both configuration and content
3535
- Simple JSX layouts and [[creating components|page components]]
3636
- [[SPA Routing|Ridiculously fast page loads]] and tiny bundle sizes

0 commit comments

Comments
 (0)