Example of Dockerizing Vue Application
.
├── ...
├── src
│ ├── ...
│ ├── App.vue
│ └── main.ts
├── .dockerignore
├── ...
├── compose.development.yaml
├── compose.production.yaml
├── ...
├── Dockerfile
├── ...
├── Makefile
├── nginx.conf
└── ...
make dev-start
make dev-stop
make prod-start
make prod-stop
npm install
npm run dev
npm run build
Run Unit Tests with Vitest
npm run test:unit
Run End-to-End Tests with Cypress
npm run test:e2e:dev
Or test the production build with test:e2e
before deploying (e.g. in CI environments):
npm run build
npm run test:e2e
Lint with ESLint
npm run lint