-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: docker support for v4 (closes #530)
- Loading branch information
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM node:20-slim as builder | ||
WORKDIR /usr/src/app | ||
COPY package.json . | ||
COPY package-lock.json* . | ||
RUN npm ci | ||
|
||
FROM node:20-slim | ||
WORKDIR /usr/src/app | ||
COPY --from=builder /usr/src/app/ /usr/src/app/ | ||
COPY . . | ||
CMD ["npx", "quartz", "build", "--serve"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Quartz comes shipped with a Docker image that will allow you to preview your Quartz locally without installing Node. | ||
|
||
You can run the below one-liner to run Quartz in Docker. | ||
|
||
```sh | ||
docker run --rm -itp 8080:8080 $(docker build -q .) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters