Sign inSign up

ogulcanaydogan/node-webapp

By ogulcanaydogan

•Updated 8 months ago

Production-ready Node.js web application base image

Image
0

935

ogulcanaydogan/node-webapp repository overview

⁠Node Webapp

Production-ready Node.js web application base image with health checks.

⁠Quick Start

docker run -p 3000:3000 ogulcanaydogan/node-webapp

⁠Features

  • Node.js 20 LTS on Alpine
  • Non-root user for security
  • Built-in health check endpoint
  • Graceful shutdown handling
  • Optimized for production (NODE_ENV=production)
  • Multi-stage build ready

⁠Environment Variables

VariableDescriptionDefault
PORTApplication port3000
NODE_ENVNode environmentproduction

⁠Usage as Base Image

FROM ogulcanaydogan/node-webapp
COPY package*.json ./
RUN npm ci --only=production
COPY . .
CMD ["node", "server.js"]

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:88137b2f9…

Size

47.9 MB

Last updated

8 months ago

docker pull ogulcanaydogan/node-webapp