Giter Site home page Giter Site logo

nginx_build's Introduction

Nginx

"nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server,
and a generic TCP/UDP proxy server, originally written by Igor Sysoev."

Website: http://nginx.org/

Please note that because of the changes to Docker Automated Builds many Docker images are now outdated and a manual build is required and recommended.

Build and run instuctions

$ docker build --no-cache -t konstruktoid/nginx:latest -f Dockerfile .
$ docker run --cap-drop=all --cap-add={chown,dac_override,net_bind_service,setgid,setuid} --name nginx -d -p 80:80 konstruktoid/nginx
c7cd68ec16bf3b480591f441dedf6612d2fbd69f216d432a01208bfa9dacc103
$ docker ps --quiet | xargs docker inspect --format '{{ .Id }}: Health={{ .State.Health.Status }}'
c7cd68ec16bf3b480591f441dedf6612d2fbd69f216d432a01208bfa9dacc103: Health=healthy
$ docker inspect --format='{{.Config.Healthcheck}}' konstruktoid/nginx
{[CMD-SHELL curl -f http://127.0.0.1/ || exit 1] 5m0s 3s 0}

There's also a concept version with a static NGINX server running on a limited Busybox in the busybox branch.

Docker image size comparison

0.73M   busybox:1.33.1
0.73M   busybox:1.33.1-uclibc
0.8M    busybox:1.33.1-musl
1.84M   konstruktoid/nginx:busybox
2.71M   busybox:1.33.1-glibc
6.34M   konstruktoid/nginx:latest
9.36M   nginx:1.20.0-alpine
9.38M   nginx:1.20-alpine
9.38M   nginx:1.20.1-alpine
9.38M   nginx:1.21.0-alpine

nginx_build's People

Contributors

konstruktoid avatar renovate-bot 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.