docker-vue3/README.md

1.3 KiB
Raw Permalink Blame History

vue-project

This template should help get you started developing with Vue 3 in Vite.

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

Project Setup

这是基于docker的项目对于开发环境要求只需要docker不需要安装node或npm。

./npm install

Compile and Hot-Reload for Development

./npm run dev

Compile and Minify for Production

./npm run build

文件说明

文件 说明
docker-compose.yml docker编排文件里面可以定义端口、工作目录等
docker-entrypoint.sh 可以被映射到容器中的/usr/local/bin/docker-entrypoint.sh,定义容器启动后会自动执行的任务
nginx.conf 可以被映射到容器中的/usr/local/openresty/nginx/conf/nginx.conf容器中nginx服务的配置文件
npm 可以执行容器中的npm命令的自动化脚本使用方法与原生npm一致不过要在前面加上./,如./npm run dev