DEV Community

Anubrat Sahoo
Anubrat Sahoo

Posted on

Dockerize a React-JS app

Create a file called "Dockerfile"

then create another file called ".dockerignore"

Then run the following commands in ur build

docker build .

docker image ls => to see all the images

docker build -t react-image . #To build a image called "react-image"

Top comments (0)