Demostration project to show how to dockerize a React app that uses Vite.
- Node
- pnpm
- Docker
- Code Editor/IDE
- Install all dependencies
pnpm install
- Start the app
pnpm dev
Run the following command
pnpm build
This will generate a new folder called dist
with the production-ready version of the app transpiled from TypeScript to JavaScript thanks to Vite and the TypeScript Compiler.