Skip to content

Rafsan12/docker

Repository files navigation

React Docker

A React + TypeScript app built with Vite and packaged for Docker.

Tech Stack

  • React 19
  • TypeScript
  • Vite
  • ESLint
  • Docker

Getting Started

Install dependencies:

npm install

Start the development server:

npm run dev

The app runs on:

http://localhost:5173

Available Scripts

npm run dev

Runs the Vite development server.

npm run build

Builds the app for production.

npm run lint

Runs ESLint checks.

npm run preview

Previews the production build locally.

Docker

Build the Docker image:

docker build -t react-docker .

Run the container:

docker run -p 5173:5173 react-docker

Then open:

http://localhost:5173

Project Structure

.
├── public/
├── src/
├── Dockerfile
├── package.json
├── tsconfig.json
└── vite.config.ts

Notes

  • node_modules is 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 running npm run build.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors