Skip to content

I have added a Dockerfile to this project and successfully built a Docker image. This image packages the application with all its dependencies, making it portable and consistent across environments. It can now be run seamlessly on any platform where Docker is installed, ensuring easy deployment and reproducibility.

Notifications You must be signed in to change notification settings

GURUPRASADPANDA/Monty-Play-dockerized

 
 

Repository files navigation

Monty-Play a React + Vite Project

This project is a React application built with Vite. It can be run either inside a Docker container for a consistent environment or natively on your machine using Node.js.


Prerequisites

  • Node.js >= 18 (for local development)
  • Docker (for containerized setup)

Running with Docker

  1. Build the Docker image:
docker build -t react-vite-app .
  1. Run the container:
docker run -it -p 5173:5173 react-vite-app
  1. Open the app in your browser:

http://localhost:5173

The app runs in a consistent, isolated environment with all dependencies included.


Running Locally with React + Vite

  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open the app in your browser:

http://localhost:5173

This method requires Node.js installed locally and uses your local environment.


Notes

  • Docker ensures the same environment for all developers and simplifies deployment.
  • Local setup is faster for iterative development but depends on your local Node.js version.
  • For production, you can build a static version using npm run build and serve it with any static server or container.

About

I have added a Dockerfile to this project and successfully built a Docker image. This image packages the application with all its dependencies, making it portable and consistent across environments. It can now be run seamlessly on any platform where Docker is installed, ensuring easy deployment and reproducibility.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.2%
  • CSS 6.2%
  • Dockerfile 1.5%
  • HTML 1.1%