Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Distroless NGINX with HTTP/3 and QUIC support🚀

License

NotificationsYou must be signed in to change notification settings

ammnt/nginx

Build and push image📦versionGitHub issues openGitHub MaintainedGitHub Maintained

The Docker image is ready to use:
ghcr.io/ammnt/nginx:latest
or
docker.io/ammnt/nginx:latest
or with Docker Compose deployment:

services:  nginx:    image: docker.io/ammnt/nginx:latest    user: "101:101"    read_only: true    privileged: false    tmpfs:     - /tmp:mode=1700,size=1G,noexec,nosuid,nodev,uid=101,gid=101    cap_drop:     - all    container_name: nginx    security_opt:      - no-new-privileges:true      - apparmor:docker-nginx      - seccomp:./nginx-seccomp.json    volumes:      - "./conf:/etc/nginx:ro"      - "/etc/timezone:/etc/timezone:ro"      - "/etc/localtime:/etc/localtime:ro"...

Description:

  • Base image: Alpine Linux (only ~5 MB);
  • Hardened image (secure, minimal and production-ready) - recommended to use in Rootless mode:
    https://docs.docker.com/engine/security/rootless/
  • Runtime on scratch image - with zero bloat;
  • Multi-stage building with statically linked binary;
  • OpenSSL with HTTP/3 and QUIC support:
    https://github.com/openssl/openssl
  • HTTP/2 with ALPN support;
  • TLS 1.3 and 0-RTT support;
  • TLS 1.2 and TCP Fast Open (TFO) support;
  • Built using hardening GCC flags;
  • NJS and Brotli support;
  • PCRE with JIT compilation;
  • zlib library latest version;
  • Rootless master process (unprivileged container);
  • Async I/O threads module;
  • "Distroless" image - reduced attack surface (removed SHELL, UNIX tools, package manager etc);
  • Removed unnecessary modules;
  • Added OCI labels and annotations;
  • No excess ENTRYPOINT in the image;
  • Slimmed version by Docker Slim tool;
  • Image efficiency score 100% according to Dive utility;
  • Scanned by vulnerability scanners: GitHub CodeQL, Docker Scout, Snyk, Grype, Dockle and Syft;
  • Prioritize ChaCha cipher patch and anonymous signature - removed "Server" header ("banner"):
    https://github.com/ammnt/nginx/blob/main/Dockerfile

Note:

Feel free tocontact me with more improvements🙋

Packages

 
 
 

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp