execute the following commands to build the docker container
cd frontend
docker build -t frontend .
Now the frontend is running on port 4000, you can check it by hitting the following url
http://localhost:3000
command for enlisting the docker images
docker images
command for checking the logs of the docker container
docker logs <container id>
command for running the docker image
docker run -p 3000:3000 frontend or docker run -p 3000:3000 <image id>
command for stopping the docker container
docker stop frontend or docker stop <container id>
command for enlisting the docker containers
docker ps -a
command for deleting the docker images
docker rmi frontend or docker rmi <image id>