Skip to content

rabie-sulman/node_docker_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple docker container for a simple node js http app

  • one container from node:carbon
  • command to run on start in the compose file (because I am not using my own Dockerfile)
  • the container opens port 8080 and maps it to 8080 (which the node script is listening to)
  • one server.js file is called in the package.json startup script
  • the server.js creates an http server which listens to port 8080 and returns text and http code 200

About

Dockerised nodejs app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published