scor32k

docker command backend - scor32k

Sep 15th, 2023 (edited)
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. We can pass port number in the cmd so, the backend will run on our spefic req port.
  2.  
  3. CMD:
  4.  
  5. docker build -t backend . -> to create and image
  6.  
  7. 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