A simple Express server runs on port 8000 with a single route that returns a JSON message back now.!
577
This repository contains a simple Express-based Node.js server packaged inside a Docker container. By default, the server listens on port 8000, but users can easily change this by setting the PORT environment variable or by mapping ports when running the container. The server provides a single route (/) that returns a JSON response, making it ideal for testing and learning Docker with Node.js
Run Using Default Port (8000)
docker run it -p 8000:8000 nareshgarg375/express-node-server
Map Any Custom Port
Example: run on host port 3000 while container uses 8000:
docker run it -p 3000:8000 nareshgarg375/express-node-server
Content type
Image
Digest
sha256:340c04a1c…
Size
333.3 MB
Last updated
10 months ago
docker pull nareshgarg375/express-node-server