Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1 KB

README.md

File metadata and controls

29 lines (23 loc) · 1 KB

Docker Image Version (latest semver) Docker Image Size (latest by date) Docker Pulls

vitepress-docker

Docker image for local Vitepress editing or to be run within a CI pipeline.

Installation

git clone https://github.com/MrDeerly/vitepress-docker.git
docker build -t mrdeerly/vitepress .

or

docker pull mrdeerly/vitepress

Usage

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.