Sign inSign up

yanixdo/node_app

By yanixdo

•Updated almost 2 years ago

Node.js Multi-Stage Build Application

Image
Web servers
0

58

yanixdo/node_app repository overview

⁠Node_App_Project

Node.js Docker

ā šŸ“‹ Description

Node_App_Project — This is a simple Node.js web application built using a multi-stage Docker build to optimize image size and performance. It serves as an example for creating efficient production-ready Docker images using multi-stage builds.

ā šŸš€ Start of work

⁠1. Clone the repository
git clone https://github.com/YanaDevOps/Node_App_Project.git
cd Node_App_Project
⁠2. Launching the application in Docker
docker build -t node_app_project:1.0.0 .
docker run -d -p 8080:3000 --name node_app_project node_app_project:1.0.0
⁠3. Access the application

Open your browser and go to:

http://localhost:8080

ā šŸ“‚ Project structure

Node_App_Project/
ā”œā”€ā”€ Dockerfile
ā”œā”€ā”€ server.js
└── package.json

Dockerfile: Configuration file for building the Docker image. server.js: Node.js application that handles HTTP requests and sends a response. package.json: Project configuration file containing dependencies and scripts.

⁠🌟 Functionality

A simple web server that responds with "Hello, Docker!" to any incoming request.

ā šŸ’» Technology

Node.js 22.x Docker

ā šŸ‘¤ Author

Name: Yana Lysenko GitHub: YanaDevOps

Tag summary

Content type

Image

Digest

sha256:3e8d3af09…

Size

51.7 MB

Last updated

almost 2 years ago

docker pull yanixdo/node_app:1.0.0