Skip to content

PShivam92/Docker.react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a React app bootstrapped with creat-react-app with configuration to build it into a Docker image

To build Docker image of this app

  • docker image build -t shivam:app . (
  • To see the image, run docker image ls shivam:app

To run the Docker container

  • docker container run -it -p 3000:3000 shivam:app
  • Open the browser and go to 'http://localhost:3000' to see the app

To run the Docker container and see the output from hot-reloading in your terminal

  • docker container run -it -p 3000:3000 -p 35729:35729 -v $(pwd):/app shivam:app

To run the Docker container and build the app

  • docker container run -it -v $(pwd):/app shivam:app build

To run the Docker container and run test for the app

  • docker container run -it -v $(pwd):/app shivam:app test

You can just get the Docker image that I built from Docker hub

  • Simply run docker pull shiang/react

Special thanks to

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published