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.
 
 
 
 
 
 
zhengqingya dacd014980 init 2 years ago
..
Docker init 2 years ago
public init 2 years ago
src init 2 years ago
.editorconfig init 2 years ago
.env.dev init 2 years ago
.env.prod init 2 years ago
.eslintignore init 2 years ago
.eslintrc.js init 2 years ago
.gitignore init 2 years ago
.prettierignore init 2 years ago
.prettierrc.js init 2 years ago
README.md init 2 years ago
deploy.sh init 2 years ago
index.html init 2 years ago
package.json init 2 years ago
tsconfig.json init 2 years ago
tsconfig.node.json init 2 years ago
vite.config.ts init 2 years ago

README.md

本地运行

# 安装依赖
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