A React + TypeScript app built with Vite and packaged for Docker.
- React 19
- TypeScript
- Vite
- ESLint
- Docker
Install dependencies:
npm installStart the development server:
npm run devThe app runs on:
http://localhost:5173
npm run devRuns the Vite development server.
npm run buildBuilds the app for production.
npm run lintRuns ESLint checks.
npm run previewPreviews the production build locally.
Build the Docker image:
docker build -t react-docker .Run the container:
docker run -p 5173:5173 react-dockerThen open:
http://localhost:5173
.
├── public/
├── src/
├── Dockerfile
├── package.json
├── tsconfig.json
└── vite.config.ts
node_modulesis ignored by Git and Docker.- The Docker image runs the Vite development server on port
5173. - Production files are generated in the
dist/directory when runningnpm run build.