Docker image for local Vitepress editing or to be run within a CI pipeline.
git clone https://github.com/MrDeerly/vitepress-docker.git
docker build -t mrdeerly/vitepress .
or
docker pull mrdeerly/vitepress
cd /path/to/your/vitepress/installation
export VITEPRESS_DOCKER_PORT="3000"
export VITEPRESS_DOCKER_MOUNT="-v $(CURDIR):/app"
export VITEPRESS_DOCKER_OPTS="--rm $(VITEPRESS_DOCKER_MOUNT)"
docker run $(VITEPRESS_DOCKER_OPTS) -p $(VITEPRESS_DOCKER_PORT):3000 mrdeerly/vitepress
This will start the vitepress devserver on port 3000.