Node.js Multi-Stage Build Application
58
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.
git clone https://github.com/YanaDevOps/Node_App_Project.git
cd Node_App_Project
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
Open your browser and go to:
http://localhost:8080
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.
A simple web server that responds with "Hello, Docker!" to any incoming request.
Node.js 22.x Docker
Name: Yana Lysenko GitHub: YanaDevOps
Content type
Image
Digest
sha256:3e8d3af09ā¦
Size
51.7 MB
Last updated
almost 2 years ago
docker pull yanixdo/node_app:1.0.0