Skip to content

saineox/reactnewbuild

Repository files navigation

React App Deployment with Docker

This repository provides instructions for deploying a React app using Docker. The can be done automatically from Docker Hub or manually by building a Docker image.

Automatic Deployment from Docker Hub

To automatically deploy the React app from Docker Hub, run the following command:

docker run -d -p 8080:80 pradeeptraje/react-app:latest

This command will pull the latest version of the React app image from Docker Hub and run it in a container.

Manual Deployment

To manually deploy the React app in a Docker container, follow these steps:

  1. Clone the repository:
  2. git clone https://github.com/saineox/reactnewbuild.git
    cd reactnewbuild
  3. Build the Docker image:
  4. docker build . -t react-app
  5. Run the Docker container:
  6. docker run -d -p 8080:80 react-app
  7. Test the app:
  8. Access the app by visiting http://localhost:8080 in your browser.

    Alternatively, you can also manually deploy the React app in a Docker container using the Nginx web server. Follow these steps:

  9. Clone the repository:
  10. git clone https://github.com/saineox/reactnewbuild.git
  11. Run the Nginx Docker container:
  12. docker run -d -p 80:80 --name react-app nginx
  13. Copy the app files to the Nginx container:
  14. docker cp ./reactnewbuild/. react-app:/usr/share/nginx/html

pradeep kadam react app


pradeep kadam github

About

Basic React-App For Ci/CD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published