This script scaffolds Vite projects with Docker support for both development and production environments.
Creates a fresh Vite project with your framework of choice and adds Docker configuration files:
- Development container with hot reload (source code mounted from host)
- Production multi-stage build with nginx
- Docker Compose setup for easy development
- Makefile with helper commands
./create-project.sh my-project-nameThe script will:
- Create a project directory
- Run Vite's interactive setup
- Add Docker configuration files
- Update package.json for Docker compatibility
- Initialize git repository
cd my-project-name
# Development (with Docker)
make run_dev
# Production build
make build_image
make run_prod.
├── create-project.sh # Main generator script
├── README.md # This file
└── templates/ # Docker configuration templates
├── .dockerignore # Files to exclude from Docker builds
├── dockerfile # Development container (Bun + Vite dev server)
├── dockerfile.prod # Production build (multi-stage: Bun build + nginx serve)
├── docker-compose.yml # Development environment orchestration
└── Makefile # Helper commands (run_dev, build_image, run_prod)