Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- We can pass port number in the cmd so, the backend will run on our spefic req port.
- CMD:
- docker build -t backend . -> to create and image
- docker run -d --name backend-continer --env PORT=5000 -p 5000:5000 backend -> Create an running instance of image mapped to port 5000
Advertisement
Add Comment
Please, Sign In to add comment