You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

570 B

本地运行

# 安装依赖
cnpm install

# 运行
cnpm run dev

部署

# 构建出dist文件夹,然后将打包后的文件放到nginx中...
cnpm run build:prod

# 构建docker镜像
docker build -f ./Docker/Dockerfile -t "registry.cn-hangzhou.aliyuncs.com/zhengqingya/smallboot-web:prod" . --no-cache

# 推送到远程仓库
docker push registry.cn-hangzhou.aliyuncs.com/zhengqingya/smallboot-web:prod


# 运行
docker run -d --name web -p 80:80 --restart=always registry.cn-hangzhou.aliyuncs.com/zhengqingya/smallboot-web:prod