This is a simple "Hello World" JS application to demonstrate the basics of JS programming and containerization using Docker. The project aims to show how JS can be executed in a containerized environment, making it easy to run and share across different systems.
In this project, we used NodeJS server to print "Hello World" to the console. We also created a Dockerfile to containerize the application, ensuring that it runs smoothly in different environments without any additional setup.
Follow these steps to pull the Docker image from Docker Hub and run it on your local machine:
To download the image from Docker Hub, run:
docker pull fernando785/javascriptproject
Once the image is pulled, you can run it locally and map it to port 3000:
docker run -p 3000:3000 fernando785/javascriptproject
Just go to localhost in the port 3000 with this link
http://localhost:3000
Make sure that your application is set up to listen on port 3000 within the container to ensure it responds correctly on this port.
Content type
Image
Digest
sha256:50b62ecdb…
Size
335.8 MB
Last updated
almost 2 years ago
docker pull fernando785/javascriptproject