Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vite + Bun + Docker Project Generator

This script scaffolds Vite projects with Docker support for both development and production environments.

What it does

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

Usage

./create-project.sh my-project-name

The script will:

  1. Create a project directory
  2. Run Vite's interactive setup
  3. Add Docker configuration files
  4. Update package.json for Docker compatibility
  5. Initialize git repository

Running your project

cd my-project-name

# Development (with Docker)
make run_dev

# Production build
make build_image
make run_prod

Project Structure

.
├── 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)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages