1. 编写Dockerfile

WORKDIR /usr/share/nginx/html
ADD . /usr/share/nginx/html
EXPOSE 80
2. 构建

docker build -t docusaurus .
docker run -p 4006:80 --name docusaurus -d docusaurus