Sign inSign up

yousef2005/web-app

By yousef2005

•Updated 3 months ago

Lightweight NGINX image serving a static web application with security best practices.

Image
Networking
Security
Web servers
0

68

yousef2005/web-app repository overview

⁠Web App - NGINX Docker Image

A lightweight and production-ready Docker image for serving a static web application using NGINX.

⁠Features

  • Based on the official nginx:1.29-alpine image
  • Lightweight Alpine Linux base
  • Serves static HTML content
  • Custom NGINX configuration
  • Runs as a non-root user for improved security
  • Built-in Docker health check
  • Optimized for containerized deployments

⁠Exposed Port

  • 8080

⁠Build the Image

docker build -t web-app .

⁠Run the Container

docker run -d -p 8080:8080 web-app

Access the application at:

http://localhost:8080

⁠Project Structure

.
├── Dockerfile
├── nginx.conf
└── index.html

⁠Security Best Practices

  • Runs as a non-root user
  • Uses a minimal Alpine-based image
  • Includes a health check
  • Suitable for Docker and DevOps learning environments

⁠Use Cases

  • Static websites
  • Landing pages
  • Docker practice
  • NGINX learning
  • CI/CD demonstrations
  • AWS ECS and Kubernetes labs

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:6b4f19ccd…

Size

24.8 MB

Last updated

3 months ago

docker pull yousef2005/web-app:v1