GitHunt
CA

caizhengxin/docker-vitepress

Docker vitepress

docker vitepress

Usage

$ git clone https://github.com/caizhengxin/docker-vitepress.git
$ cd docker-vitepress

# $ docker build -t vitepress:2.0.0-alpha.5 .
# New version
$ docker buildx build -t vitepress:2.0.0-alpha.5 .

# "path" replaces the actual path
$ sudo docker run --rm --name vitepress -v /path/vitepress-demo/:/app/ -p 5173:5173 -it vitepress:2.0.0-alpha.5
┌  Welcome to VitePress!
│
◇  Where should VitePress initialize the config?
│  ./docs
│
◇  Where should VitePress look for your markdown files?
│  ./docs
│
◇  Site title:
│  My Awesome Project
│
◇  Site description:
│  A VitePress Site
│
◇  Theme:
│  Default Theme
│
◇  Use TypeScript for config and theme files?
│  Yes
│
◇  Add VitePress npm scripts to package.json?
│  Yes
│
◇  Add a prefix for VitePress npm scripts?
│  Yes
│
◇  Prefix for VitePress npm scripts:
│  docs
│
└  Done! Now run npm run docs:dev and start writing.
# "path" replaces the actual path
$ ll /path/vitepress-demo/

Languages

TypeScript47.2%CSS35.4%Shell10.6%Dockerfile6.8%
Created June 12, 2025
Updated June 13, 2025
caizhengxin/docker-vitepress | GitHunt