GithubHelp home page GithubHelp logo

wprobot / nginx-docker-container Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nginx-modules/nginx-docker-container

0.0 0.0 0.0 42 KB

⚙️ Built-from-source container image of the NGINX HTTP server

License: MIT License

Dockerfile 83.12% HTML 16.88%

nginx-docker-container's Introduction

nginx (Docker image)

Built-from-source container image of the NGINX HTTP server

Available at ricardbejarano/nginx.

Tags

1.15.9-glibc, 1.15.9, glibc, latest (glibc/Dockerfile)

1.15.9-musl, musl (musl/Dockerfile)

Features

  • Super tiny (glibc-based is ~13MB and musl-based is ~12.3MB)
  • Built from source, including libraries
  • Built from scratch, see the Filesystem section below for an exhaustive list of the image's contents
  • Included TLS1.3 protocol support (with OpenSSL)
  • Reduced attack surface (no bash, no UNIX tools, no package manager...)

Building

To build the glibc-based image:

$ git clone https://github.com/ricardbejarano/nginx
$ cd nginx
$ docker build -t nginx:glibc -f glibc/Dockerfile .

To build the musl-based image:

$ git clone https://github.com/ricardbejarano/nginx
$ cd nginx
$ docker build -t nginx:musl -f musl/Dockerfile .

Filesystem

The images' contents are:

glibc

Based on the glibc implementation of libc.

/
├── etc/
│   ├── group/
│   ├── nginx/
│   │   ├── html/
│   │   │   ├── 50x.html
│   │   │   └── index.html
│   │   ├── mime.types
│   │   └── nginx.conf
│   └── passwd
├── lib/
│   └── x86_64-linux-gnu/
│       ├── libc.so.6
│       ├── libcrypt.so.1
│       ├── libdl.so.2
│       ├── libnss_dns.so.2
│       ├── libnss_files.so.2
│       ├── libpthread.so.0
│       └── libresolv.so.2
├── lib64/
│   └── ld-linux-x86-64.so.2
├── nginx
└── tmp/
    └── .keep

musl

Based on the musl implementation of libc.

/
├── etc/
│   ├── group
│   ├── nginx/
│   │   ├── html/
│   │   │   ├── 50x.html
│   │   │   └── index.html
│   │   ├── mime.types
│   │   └── nginx.conf
│   └── passwd
├── lib/
│   ├── ld-musl-x86_64.so.1
│   └── libssl.so.1.1
├── nginx
└── tmp/
    └── .keep

License

See LICENSE.

nginx-docker-container's People

Contributors

ricardbejarano avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.