- 编写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
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
构建Docker镜像
https://blog.haojianxiang.top/?p=737