├── .gitlab-ci.yml ├── LICENSE ├── README.md ├── ci ├── nginx_build ├── nginx_cleanup ├── nginx_deploy ├── nginx_test └── nginx_tweet ├── mainline ├── libressl │ ├── Dockerfile │ └── root │ │ ├── etc │ │ ├── nginx │ │ │ ├── conf.d │ │ │ │ └── default.conf │ │ │ └── conf │ │ │ │ └── nginx.conf │ │ └── services.d │ │ │ └── nginx │ │ │ ├── finish │ │ │ └── run │ │ └── usr │ │ └── html │ │ └── index.html └── openssl │ ├── Dockerfile │ └── root │ ├── etc │ ├── nginx │ │ ├── conf.d │ │ │ └── default.conf │ │ └── conf │ │ │ └── nginx.conf │ └── services.d │ │ └── nginx │ │ ├── finish │ │ └── run │ └── usr │ └── html │ └── index.html ├── nightly ├── libressl │ ├── Dockerfile │ └── root │ │ ├── etc │ │ ├── nginx │ │ │ ├── conf.d │ │ │ │ └── default.conf │ │ │ └── conf │ │ │ │ └── nginx.conf │ │ └── services.d │ │ │ └── nginx │ │ │ ├── finish │ │ │ └── run │ │ └── usr │ │ └── html │ │ └── index.html └── openssl │ ├── Dockerfile │ └── root │ ├── etc │ ├── nginx │ │ ├── conf.d │ │ │ └── default.conf │ │ └── conf │ │ │ └── nginx.conf │ └── services.d │ │ └── nginx │ │ ├── finish │ │ └── run │ └── usr │ └── html │ └── index.html └── stable ├── libressl ├── Dockerfile └── root │ ├── etc │ ├── nginx │ │ ├── conf.d │ │ │ └── default.conf │ │ └── conf │ │ │ └── nginx.conf │ └── services.d │ │ └── nginx │ │ ├── finish │ │ └── run │ └── usr │ └── html │ └── index.html └── openssl ├── Dockerfile └── root ├── etc ├── nginx │ ├── conf.d │ │ └── default.conf │ └── conf │ │ └── nginx.conf └── services.d │ └── nginx │ ├── finish │ └── run └── usr └── html └── index.html /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | stages: 2 | - build 3 | - test 4 | - cleanup 5 | - tweet 6 | - deploy 7 | 8 | build_job: 9 | stage: build 10 | script: 11 | - ci/nginx_build 12 | 13 | test_job: 14 | stage: test 15 | script: 16 | - ci/nginx_test 17 | 18 | cleanup: 19 | stage: cleanup 20 | script: 21 | - ci/nginx_cleanup 22 | when: always 23 | 24 | tweet_succeed_job: 25 | variables: 26 | PASSED: "true" 27 | stage: tweet 28 | only: 29 | - tags 30 | - triggers 31 | - master 32 | script: 33 | - ci/nginx_tweet 34 | 35 | tweet_failed_job: 36 | variables: 37 | PASSED: "false" 38 | stage: tweet 39 | only: 40 | - tags 41 | - triggers 42 | - master 43 | script: 44 | - ci/nginx_tweet 45 | when: on_failure 46 | 47 | deploy_job: 48 | stage: deploy 49 | only: 50 | - tags 51 | - triggers 52 | - master 53 | script: 54 | - ci/nginx_deploy 55 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Dominique HAAS 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Docker Stars](https://img.shields.io/docker/stars/evild/alpine-nginx.svg?style=flat-square)](https://hub.docker.com/r/evild/alpine-nginx/) 2 | [![Docker Pulls](https://img.shields.io/docker/pulls/evild/alpine-nginx.svg?style=flat-square)](https://hub.docker.com/r/evild/alpine-nginx/) 3 | [![](https://images.microbadger.com/badges/image/evild/alpine-nginx.svg)](https://microbadger.com/images/evild/alpine-nginx) 4 | 5 | # Alpine Nginx 6 | 7 | This image is based on [evild/alpine-base](https://hub.docker.com/r/evild/alpine-base/) 8 | 9 | ## Version 10 | 11 | ### Nightly 12 | 13 | - `nightly-libressl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/master/nightly/libressl/Dockerfile) 14 | - `nightly-openssl`, `nightly` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/master/nightly/openssl/Dockerfile) 15 | 16 | ### Mainline 17 | 18 | - `mainline-libressl`, `libressl`, [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/master/mainline/libressl/Dockerfile) 19 | - `mainline`, `mainline-openssl`, `openssl`, `latest` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/master/mainline/openssl/Dockerfile) 20 | - `1.11.5-libressl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/c7f4e8e49f8c71d38de3f87a1f9179947a782829/mainline/libressl/Dockerfile) 21 | - `1.11.5`, `1.11.5-openssl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/c7f4e8e49f8c71d38de3f87a1f9179947a782829/mainline/openssl/Dockerfile) 22 | - `1.11.4-libressl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/ce5faf81007a381354279da12d9e464967b52ce1/mainline/libressl/Dockerfile) 23 | - `1.11.4`, `1.11.4-openssl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/ce5faf81007a381354279da12d9e464967b52ce1/mainline/openssl/Dockerfile) 24 | - `1.11.3-libressl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/46b6d2ec0a9367a378e7d5ce21056c1bc71ff49d/mainline/libressl/Dockerfile) 25 | - `1.11.3`, `1.11.3-openssl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/46b6d2ec0a9367a378e7d5ce21056c1bc71ff49d/mainline/openssl/Dockerfile) 26 | - `1.11.2-libressl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/224a1e581f7fdc794591de41924bfb96ccd7b8f2/mainline/libressl/Dockerfile) 27 | - `1.11.2`, `1.11.2-openssl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/224a1e581f7fdc794591de41924bfb96ccd7b8f2/mainline/openssl/Dockerfile) 28 | - `1.11.1-libressl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/3239b6cf29bd54bb72aa2a909c5458831232cee8/mainline/libressl/Dockerfile) 29 | - `1.11.1`, `1.11.1-openssl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/3239b6cf29bd54bb72aa2a909c5458831232cee8/mainline/openssl/Dockerfile) 30 | - `1.11.0-libressl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/c1503c0a22958a242bde414a60fa92967be2533a/mainline/libressl/Dockerfile) 31 | - `1.11.0`, `1.11.0-openssl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/c1503c0a22958a242bde414a60fa92967be2533a/mainline/openssl/Dockerfile) 32 | - `1.9.15-libressl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/26f2f9939c0d706b532749530499da069572783a/mainline/libressl/Dockerfile) 33 | - `1.9.15`, `1.9.15-openssl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/26f2f9939c0d706b532749530499da069572783a/maineline/openssl/Dockerfile) 34 | - `1.9.14-libressl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/546d83c12ab16e5c997900d0bf473b8ca97f2c30/mainline/libressl/Dockerfile) 35 | - `1.9.14`, `1.9.14-openssl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/6db861c6b14d45b1357e27ec90613b533196f43c/mainline/openssl/Dockerfile) 36 | - `1.9.13-libressl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/master/libressl/Dockerfile) 37 | - `1.9.13`, `1.9.13-openssl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/master/openssl/Dockerfile) 38 | - `1.9.12` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/03e9f3eaf49961ac482bd0eb462562f3f5809a50/Dockerfile) 39 | - `1.9.11` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/121a9b9d36a6f895d3af8d5ffcad7d751beec444/Dockerfile) 40 | - `1.9.10` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/e939de5fe2d82092c45d97379d681875d9f2e533/Dockerfile) 41 | - `1.9.9` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/69d6179fa9f4d939a73422ceaf31c9dd56f41d96/Dockerfile) 42 | 43 | ### Stable 44 | 45 | - `stable`, `stable-openssl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/master/stable/openssl/Dockerfile) 46 | - `stable-libressl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/master/stable/libressl/Dockerfile) 47 | - `1.10.2-libressl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/3239b6cf29bd54bb72aa2a909c5458831232cee8/stable/libressl/Dockerfile) 48 | - `1.10.2`, `1.10.2-openssl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/3239b6cf29bd54bb72aa2a909c5458831232cee8/stable/openssl/Dockerfile) 49 | - `1.10.1-libressl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/3239b6cf29bd54bb72aa2a909c5458831232cee8/stable/libressl/Dockerfile) 50 | - `1.10.1`, `1.10.1-openssl` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/3239b6cf29bd54bb72aa2a909c5458831232cee8/stable/openssl/Dockerfile) 51 | - `1.10.0` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/a1afaef62c34dfd67f40616c2e4d3a59913ce14a/stable/openssl/Dockerfile) 52 | - `1.8.1` [(Dockerfile)](https://github.com/Evild67/docker-alpine-nginx/blob/94288e4964c8261729c4103e4ce24077c8a1e67a/stable/openssl/Dockerfile) 53 | 54 | 55 | 56 | ## What is Nginx? 57 | 58 | 59 | ![nginx logo](https://nginx.org/nginx.png) 60 | 61 | 62 | Nginx (pronounced "engine-x") is an open source reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and a web server (origin server). The nginx project started with a strong focus on high concurrency, high performance and low memory usage. It is licensed under the 2-clause BSD-like license and it runs on Linux, BSD variants, Mac OS X, Solaris, AIX, HP-UX, as well as on other nix flavors. It also has a proof of concept port for Microsoft Window.. 63 | 64 | ## Installation 65 | Automated builds of the image are available on Dockerhub and is the recommended method of installation. 66 | ``` 67 | docker pull evild/alpine-nginx:1.11.2 68 | ``` 69 | 70 | You can also pull the latest tag which is built from the repository HEAD : Nginx Mainline with Openssl. 71 | ``` 72 | docker pull evild/alpine-nginx:latest 73 | ``` 74 | 75 | If you are crazy, you can also pull nightly tag witch is build every day from nginx git source. 76 | ``` 77 | docker pull evild/alpine-nginx:nightly 78 | ``` 79 | 80 | 81 | ## Basic usage 82 | ``` 83 | docker run -p 80:80 -p 443:443 --name nginx evild/alpine-nginx 84 | ``` 85 | 86 | ### with docker-compose.yml v1 87 | 88 | ```yml 89 | nginx: 90 | image: evild/alpine-nginx 91 | restart: always 92 | ports: 93 | - 80:80 94 | - 443:443 95 | #volumes: #Overwrite nginx configuration 96 | # - /your/path/to/nginx.conf:/etc/nginx/conf/nginx.conf:ro 97 | ``` 98 | 99 | ## Custom Nginx configuration 100 | 101 | You can overwrite nginx configuration: 102 | 103 | Create your own nginx.conf. Make sure your nginx.conf file has a volume to ```/etc/nginx/conf/nginx.conf``` 104 | 105 | ``` 106 | docker run -p 80:80 -p 443:443 -v /your/path/to/nginx.conf:/etc/nginx/conf/nginx.conf:ro --name nginx evild/alpine-nginx 107 | ``` 108 | 109 | 110 | Make sure you set ```daemon off``` in your configuration otherwise the container will exit. 111 | 112 | ## Example 113 | 114 | * [docker-compose-lemp](https://github.com/Evild67/docker-compose-lemp) 115 | * [FR LEMP Stack en 90 secondes avec Docker](http://mercu.re/27YTwVb) 116 | * [EN LEMP Stack in 90 seconds with Docker](http://mercu.re/1UdVJ4M) 117 | * [docker-compose-wordpress](https://github.com/Evild67/docker-compose-wordpress) 118 | * [FR WordPress en 90 secondes avec Docker](https://mercu.re/21uE123) 119 | * [EN WordPress in 90 seconds with Docker](https://mercu.re/28Sddt3) 120 | 121 | ## License 122 | 123 | [MIT](https://github.com/Evild67/docker-alpine-nginx/blob/master/README.md) -------------------------------------------------------------------------------- /ci/nginx_build: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | docker --version 6 | 7 | if [ "$NIGHTLY_BUILD" ]; then 8 | 9 | docker build -t evild/alpine-nginx:nightly-openssl --no-cache nightly/openssl 10 | docker inspect evild/alpine-nginx:nightly-openssl 11 | 12 | docker build -t evild/alpine-nginx:nightly-libressl --no-cache nightly/libressl 13 | docker inspect evild/alpine-nginx:nightly-libressl 14 | 15 | else 16 | 17 | docker build -t evild/alpine-nginx:mainline-libressl mainline/libressl 18 | docker inspect evild/alpine-nginx:mainline-libressl 19 | 20 | docker build -t evild/alpine-nginx:mainline-openssl mainline/openssl 21 | docker inspect evild/alpine-nginx:mainline-libressl 22 | 23 | docker build -t evild/alpine-nginx:stable-openssl stable/openssl 24 | docker inspect evild/alpine-nginx:stable 25 | 26 | docker build -t evild/alpine-nginx:stable-libressl stable/libressl 27 | docker inspect evild/alpine-nginx:stable-libressl 28 | 29 | 30 | fi 31 | -------------------------------------------------------------------------------- /ci/nginx_cleanup: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | docker rm -f $(docker ps -aq) 6 | -------------------------------------------------------------------------------- /ci/nginx_deploy: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "$NIGHTLY_BUILD" ]; then 6 | curl -H "Content-Type: application/json" --data '{"source_type": "Branch", "source_name": "master"}' -X POST https://registry.hub.docker.com/u/evild/alpine-nginx/trigger/$DOCKER_HUB_ALPINE_NGINX_TOKEN/ 7 | else 8 | 9 | git checkout master 10 | git push --mirror https://$GITHUB_TOKEN@github.com/Evild67/docker-alpine-nginx.git 11 | 12 | fi 13 | -------------------------------------------------------------------------------- /ci/nginx_test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "$NIGHTLY_BUILD" ]; then 6 | 7 | docker run -p 5000:80 -d --name nginx-nightly-openssl evild/alpine-nginx:nightly-openssl 8 | docker ps | grep nginx-nightly-openssl 9 | sleep 10 10 | curl -I 127.0.0.1:5000 11 | 12 | docker run -p 5001:80 -d --name nginx-nightly-libressl evild/alpine-nginx:nightly-libressl 13 | docker ps | grep nginx-nightly-libressl 14 | sleep 10 15 | curl -I 127.0.0.1:5001 16 | 17 | else 18 | 19 | docker run -p 5000:80 -d --name nginx-mainline-openssl evild/alpine-nginx:mainline-openssl 20 | docker ps | grep nginx-mainline-openssl 21 | sleep 10 22 | curl -I 127.0.0.1:5000 23 | 24 | docker run -p 5001:80 -d --name nginx-mainline-libressl evild/alpine-nginx:mainline-libressl 25 | docker ps | grep nginx-mainline-libressl 26 | sleep 10 27 | curl -I 127.0.0.1:5001 28 | 29 | docker run -p 5003:80 -d --name nginx-stable-openssl evild/alpine-nginx:stable-openssl 30 | docker ps | grep nginx-stable-openssl 31 | sleep 10 32 | curl -I 127.0.0.1:5003 33 | 34 | docker run -p 5004:80 -d --name nginx-stable-libressl evild/alpine-nginx:stable-libressl 35 | docker ps | grep nginx-stable-libressl 36 | sleep 10 37 | curl -I 127.0.0.1:5004 38 | 39 | fi 40 | -------------------------------------------------------------------------------- /ci/nginx_tweet: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | default_text="Gitlab Job $CI_BUILD_ID :" 5 | 6 | if [ "$NIGHTLY_BUILD" ]; then 7 | tweet_text="$default_text #Docker nginx nightly build" 8 | else 9 | tweet_text="$default_text #Docker nginx $CI_BUILD_REF_NAME build" 10 | fi 11 | 12 | if [ $PASSED = true ]; then 13 | tweet_text="$tweet_text succeed http://mercu.re/1PkRj07" 14 | else 15 | tweet_text="$tweet_text failed http://mercu.re/1PkRj07" 16 | fi 17 | 18 | docker run --rm -e TWITTER_ACCESS_TOKEN_SECRET=$TWITTER_ACCESS_TOKEN_SECRET -e TWITTER_ACCESS_TOKEN_KEY=$TWITTER_ACCESS_TOKEN_KEY -e TWITTER_CONSUMER_SECRET=$TWITTER_CONSUMER_SECRET -e TWITTER_CONSUMER_KEY=$TWITTER_CONSUMER_KEY evild/twitter_build_bot:latest "$tweet_text" 19 | -------------------------------------------------------------------------------- /mainline/libressl/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM evild/alpine-base:3.0.0 2 | MAINTAINER Dominique HAAS 3 | 4 | ARG NGINX_VERSION=1.11.5 5 | ARG LIBRESSL_VERSION=2.4.3 6 | ENV GPG_KEYS \ 7 | B0F4253373F8F6F510D42178520A9993A1C052F8 \ 8 | A1EB079B8D3EB92B4EBD3139663AF51BD5E4D8D5 9 | 10 | RUN \ 11 | build_pkgs="build-base linux-headers pcre-dev curl zlib-dev gnupg geoip-dev" \ 12 | && runtime_pkgs="ca-certificates pcre zlib geoip" \ 13 | && apk --no-cache add ${build_pkgs} ${runtime_pkgs} \ 14 | && for key in $GPG_KEYS; do \ 15 | gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ 16 | done \ 17 | && mkdir /tmp/libressl \ 18 | && cd /tmp/libressl \ 19 | && curl -fSL http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz -o libressl.tar.gz \ 20 | && curl -fSL http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz.asc -o libressl.tar.gz.asc \ 21 | && gpg --batch --verify libressl.tar.gz.asc libressl.tar.gz \ 22 | && tar -zxf libressl.tar.gz \ 23 | && cd libressl-${LIBRESSL_VERSION} \ 24 | && ./configure \ 25 | LDFLAGS=-lrt \ 26 | --prefix=/tmp/libressl/.openssl/ \ 27 | && make install-strip -j $(getconf _NPROCESSORS_ONLN) \ 28 | && mkdir -p /tmp/src \ 29 | && cd /tmp/src \ 30 | && curl -fSL http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz -o nginx.tar.gz \ 31 | && curl -fSL http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz.asc -o nginx.tar.gz.asc \ 32 | && gpg --batch --verify nginx.tar.gz.asc nginx.tar.gz \ 33 | && tar -zxf nginx.tar.gz \ 34 | && cd nginx-${NGINX_VERSION} \ 35 | && ./configure \ 36 | --user=www-data \ 37 | --group=www-data \ 38 | --sbin-path=/usr/sbin/nginx \ 39 | --with-http_ssl_module \ 40 | --with-openssl=/tmp/libressl/libressl-${LIBRESSL_VERSION} \ 41 | --with-ld-opt="-lrt" \ 42 | --with-http_realip_module \ 43 | --with-http_addition_module \ 44 | --with-http_sub_module \ 45 | --with-http_dav_module \ 46 | --with-http_flv_module \ 47 | --with-http_mp4_module \ 48 | --with-http_gunzip_module \ 49 | --with-http_gzip_static_module \ 50 | --with-http_random_index_module \ 51 | --with-http_secure_link_module \ 52 | --with-http_stub_status_module \ 53 | --with-http_auth_request_module \ 54 | --with-mail \ 55 | --with-mail_ssl_module \ 56 | --with-file-aio \ 57 | --with-ipv6 \ 58 | --with-threads \ 59 | --with-stream \ 60 | --with-stream_ssl_module \ 61 | --with-http_v2_module \ 62 | --with-http_geoip_module \ 63 | --prefix=/etc/nginx \ 64 | --http-log-path=/var/log/nginx/access.log \ 65 | --error-log-path=/var/log/nginx/error.log \ 66 | && make -j $(getconf _NPROCESSORS_ONLN) \ 67 | && make install \ 68 | && make clean \ 69 | && rm -rf /tmp/ /root/.gnupg \ 70 | && strip -s /usr/sbin/nginx \ 71 | && apk del ${build_pkgs} \ 72 | && adduser -D www-data \ 73 | && ln -sf /dev/stdout /var/log/nginx/access.log \ 74 | && ln -sf /dev/stderr /var/log/nginx/error.log 75 | 76 | ADD root / 77 | 78 | EXPOSE 80 443 79 | -------------------------------------------------------------------------------- /mainline/libressl/root/etc/nginx/conf.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | server_name ""; 4 | 5 | root /usr/html; 6 | index index.html; 7 | 8 | location /favicon.ico { 9 | log_not_found off; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /mainline/libressl/root/etc/nginx/conf/nginx.conf: -------------------------------------------------------------------------------- 1 | user www-data; 2 | worker_processes 1; 3 | 4 | daemon off; 5 | 6 | events { 7 | worker_connections 1024; 8 | } 9 | 10 | error_log /var/log/nginx/error.log warn; 11 | pid /var/run/nginx.pid; 12 | 13 | http { 14 | include /etc/nginx/conf/mime.types; 15 | default_type application/octet-stream; 16 | 17 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 18 | '$status $body_bytes_sent "$http_referer" ' 19 | '"$http_user_agent" "$http_x_forwarded_for"'; 20 | 21 | access_log /var/log/nginx/access.log main; 22 | 23 | sendfile on; 24 | #tcp_nopush on; 25 | 26 | keepalive_timeout 65; 27 | 28 | gzip on; 29 | 30 | include /etc/nginx/conf.d/*.conf; 31 | 32 | } 33 | -------------------------------------------------------------------------------- /mainline/libressl/root/etc/services.d/nginx/finish: -------------------------------------------------------------------------------- 1 | #!/usr/bin/execlineb -S1 2 | 3 | # only tell s6 to bring down the entire container, if it isn't already doing so 4 | # http://skarnet.org/software/s6/s6-supervise.html 5 | if { s6-test ${1} -ne 0 } 6 | if { s6-test ${1} -ne 256 } 7 | 8 | s6-svscanctl -t /var/run/s6/services 9 | -------------------------------------------------------------------------------- /mainline/libressl/root/etc/services.d/nginx/run: -------------------------------------------------------------------------------- 1 | #!/usr/bin/with-contenv sh 2 | 3 | exec nginx; 4 | -------------------------------------------------------------------------------- /mainline/libressl/root/usr/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Welcome to nginx! 5 | 12 | 13 | 14 |

Welcome to nginx!

15 |

The evild/alpine-nginx variant.

16 |

If you see this page, the nginx web server is successfully installed and 17 | working. Further configuration is required.

18 | 19 |

For online documentation and support please refer to 20 | nginx.org.
21 | Commercial support is available at 22 | nginx.com.

23 | 24 | 25 |

Thank you for using nginx.

26 | 27 | 28 | -------------------------------------------------------------------------------- /mainline/openssl/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM evild/alpine-base:3.0.0 2 | MAINTAINER Dominique HAAS 3 | 4 | ARG NGINX_VERSION=1.11.5 5 | ENV GPG_KEYS B0F4253373F8F6F510D42178520A9993A1C052F8 6 | 7 | RUN \ 8 | build_pkgs="build-base linux-headers openssl-dev pcre-dev curl zlib-dev gnupg" \ 9 | && runtime_pkgs="ca-certificates openssl pcre zlib" \ 10 | && apk --no-cache add ${build_pkgs} ${runtime_pkgs} \ 11 | && for key in $GPG_KEYS; do \ 12 | gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ 13 | done \ 14 | && mkdir -p /tmp/src \ 15 | && cd /tmp/src \ 16 | && curl -fSL http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz -o nginx.tar.gz \ 17 | && curl -fSL http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz.asc -o nginx.tar.gz.asc \ 18 | && gpg --batch --verify nginx.tar.gz.asc nginx.tar.gz \ 19 | && tar -zxf nginx.tar.gz \ 20 | && cd nginx-${NGINX_VERSION} \ 21 | && ./configure \ 22 | --user=www-data \ 23 | --group=www-data \ 24 | --sbin-path=/usr/sbin/nginx \ 25 | --with-http_ssl_module \ 26 | --with-http_realip_module \ 27 | --with-http_addition_module \ 28 | --with-http_sub_module \ 29 | --with-http_dav_module \ 30 | --with-http_flv_module \ 31 | --with-http_mp4_module \ 32 | --with-http_gunzip_module \ 33 | --with-http_gzip_static_module \ 34 | --with-http_random_index_module \ 35 | --with-http_secure_link_module \ 36 | --with-http_stub_status_module \ 37 | --with-http_auth_request_module \ 38 | --with-mail \ 39 | --with-mail_ssl_module \ 40 | --with-file-aio \ 41 | --with-ipv6 \ 42 | --with-threads \ 43 | --with-stream \ 44 | --with-stream_ssl_module \ 45 | --with-http_v2_module \ 46 | --prefix=/etc/nginx \ 47 | --http-log-path=/var/log/nginx/access.log \ 48 | --error-log-path=/var/log/nginx/error.log \ 49 | && make -j $(getconf _NPROCESSORS_ONLN) \ 50 | && make install \ 51 | && make clean \ 52 | && rm -rf /tmp/ /root/.gnupg \ 53 | && strip -s /usr/sbin/nginx \ 54 | && apk del ${build_pkgs} \ 55 | && adduser -D www-data \ 56 | && ln -sf /dev/stdout /var/log/nginx/access.log \ 57 | && ln -sf /dev/stderr /var/log/nginx/error.log 58 | 59 | ADD root / 60 | 61 | EXPOSE 80 443 62 | -------------------------------------------------------------------------------- /mainline/openssl/root/etc/nginx/conf.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | server_name ""; 4 | 5 | root /usr/html; 6 | index index.html; 7 | 8 | location /favicon.ico { 9 | log_not_found off; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /mainline/openssl/root/etc/nginx/conf/nginx.conf: -------------------------------------------------------------------------------- 1 | user www-data; 2 | worker_processes 1; 3 | 4 | daemon off; 5 | 6 | events { 7 | worker_connections 1024; 8 | } 9 | 10 | error_log /var/log/nginx/error.log warn; 11 | pid /var/run/nginx.pid; 12 | 13 | http { 14 | include /etc/nginx/conf/mime.types; 15 | default_type application/octet-stream; 16 | 17 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 18 | '$status $body_bytes_sent "$http_referer" ' 19 | '"$http_user_agent" "$http_x_forwarded_for"'; 20 | 21 | access_log /var/log/nginx/access.log main; 22 | 23 | sendfile on; 24 | #tcp_nopush on; 25 | 26 | keepalive_timeout 65; 27 | 28 | gzip on; 29 | 30 | include /etc/nginx/conf.d/*.conf; 31 | 32 | } 33 | -------------------------------------------------------------------------------- /mainline/openssl/root/etc/services.d/nginx/finish: -------------------------------------------------------------------------------- 1 | #!/usr/bin/execlineb -S1 2 | 3 | # only tell s6 to bring down the entire container, if it isn't already doing so 4 | # http://skarnet.org/software/s6/s6-supervise.html 5 | if { s6-test ${1} -ne 0 } 6 | if { s6-test ${1} -ne 256 } 7 | 8 | s6-svscanctl -t /var/run/s6/services 9 | -------------------------------------------------------------------------------- /mainline/openssl/root/etc/services.d/nginx/run: -------------------------------------------------------------------------------- 1 | #!/usr/bin/with-contenv sh 2 | 3 | exec nginx; 4 | -------------------------------------------------------------------------------- /mainline/openssl/root/usr/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Welcome to nginx! 5 | 12 | 13 | 14 |

Welcome to nginx!

15 |

The evild/alpine-nginx variant.

16 |

If you see this page, the nginx web server is successfully installed and 17 | working. Further configuration is required.

18 | 19 |

For online documentation and support please refer to 20 | nginx.org.
21 | Commercial support is available at 22 | nginx.com.

23 | 24 | 25 |

Thank you for using nginx.

26 | 27 | 28 | -------------------------------------------------------------------------------- /nightly/libressl/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM evild/alpine-base:3.0.0 2 | MAINTAINER Dominique HAAS 3 | 4 | ARG NGINX_VERSION=NIGHTLY 5 | ARG LIBRESSL_VERSION=2.4.2 6 | ENV GPG_KEYS A1EB079B8D3EB92B4EBD3139663AF51BD5E4D8D5 7 | 8 | RUN \ 9 | build_pkgs="build-base linux-headers pcre-dev curl zlib-dev gnupg" \ 10 | && runtime_pkgs="ca-certificates pcre zlib" \ 11 | && apk --no-cache add ${build_pkgs} ${runtime_pkgs} \ 12 | && for key in $GPG_KEYS; do \ 13 | gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ 14 | done \ 15 | && mkdir /tmp/libressl \ 16 | && cd /tmp/libressl \ 17 | && curl -fSL http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz -o libressl.tar.gz \ 18 | && curl -fSL http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz.asc -o libressl.tar.gz.asc \ 19 | && gpg --batch --verify libressl.tar.gz.asc libressl.tar.gz \ 20 | && tar -zxf libressl.tar.gz \ 21 | && cd libressl-${LIBRESSL_VERSION} \ 22 | && ./configure \ 23 | LDFLAGS=-lrt \ 24 | --prefix=/tmp/libressl/.openssl/ \ 25 | && make install-strip -j $(getconf _NPROCESSORS_ONLN) \ 26 | && mkdir -p /tmp/src \ 27 | && cd /tmp/src \ 28 | && curl -fSL http://hg.nginx.org/nginx/archive/tip.tar.gz -o nginx.tar.gz \ 29 | && tar -zxf nginx.tar.gz \ 30 | && cd nginx-*/ \ 31 | && ./auto/configure \ 32 | --user=www-data \ 33 | --group=www-data \ 34 | --sbin-path=/usr/sbin/nginx \ 35 | --with-http_ssl_module \ 36 | --with-openssl=/tmp/libressl/libressl-${LIBRESSL_VERSION} \ 37 | --with-ld-opt="-lrt" \ 38 | --with-http_realip_module \ 39 | --with-http_addition_module \ 40 | --with-http_sub_module \ 41 | --with-http_dav_module \ 42 | --with-http_flv_module \ 43 | --with-http_mp4_module \ 44 | --with-http_gunzip_module \ 45 | --with-http_gzip_static_module \ 46 | --with-http_random_index_module \ 47 | --with-http_secure_link_module \ 48 | --with-http_stub_status_module \ 49 | --with-http_auth_request_module \ 50 | --with-mail \ 51 | --with-mail_ssl_module \ 52 | --with-file-aio \ 53 | --with-ipv6 \ 54 | --with-threads \ 55 | --with-stream \ 56 | --with-stream_ssl_module \ 57 | --with-http_v2_module \ 58 | --prefix=/etc/nginx \ 59 | --http-log-path=/var/log/nginx/access.log \ 60 | --error-log-path=/var/log/nginx/error.log \ 61 | && make -j $(getconf _NPROCESSORS_ONLN) \ 62 | && make install \ 63 | && make clean \ 64 | && rm -rf /tmp/ /root/.gnupg \ 65 | && strip -s /usr/sbin/nginx \ 66 | && apk del ${build_pkgs} \ 67 | && adduser -D www-data \ 68 | && ln -sf /dev/stdout /var/log/nginx/access.log \ 69 | && ln -sf /dev/stderr /var/log/nginx/error.log 70 | 71 | ADD root / 72 | 73 | EXPOSE 80 443 74 | -------------------------------------------------------------------------------- /nightly/libressl/root/etc/nginx/conf.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | server_name ""; 4 | 5 | root /usr/html; 6 | index index.html; 7 | 8 | location /favicon.ico { 9 | log_not_found off; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /nightly/libressl/root/etc/nginx/conf/nginx.conf: -------------------------------------------------------------------------------- 1 | user www-data; 2 | worker_processes 1; 3 | 4 | daemon off; 5 | 6 | events { 7 | worker_connections 1024; 8 | } 9 | 10 | error_log /var/log/nginx/error.log warn; 11 | pid /var/run/nginx.pid; 12 | 13 | http { 14 | include /etc/nginx/conf/mime.types; 15 | default_type application/octet-stream; 16 | 17 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 18 | '$status $body_bytes_sent "$http_referer" ' 19 | '"$http_user_agent" "$http_x_forwarded_for"'; 20 | 21 | access_log /var/log/nginx/access.log main; 22 | 23 | sendfile on; 24 | #tcp_nopush on; 25 | 26 | keepalive_timeout 65; 27 | 28 | gzip on; 29 | 30 | include /etc/nginx/conf.d/*.conf; 31 | 32 | } 33 | -------------------------------------------------------------------------------- /nightly/libressl/root/etc/services.d/nginx/finish: -------------------------------------------------------------------------------- 1 | #!/usr/bin/execlineb -S1 2 | 3 | # only tell s6 to bring down the entire container, if it isn't already doing so 4 | # http://skarnet.org/software/s6/s6-supervise.html 5 | if { s6-test ${1} -ne 0 } 6 | if { s6-test ${1} -ne 256 } 7 | 8 | s6-svscanctl -t /var/run/s6/services 9 | -------------------------------------------------------------------------------- /nightly/libressl/root/etc/services.d/nginx/run: -------------------------------------------------------------------------------- 1 | #!/usr/bin/with-contenv sh 2 | 3 | exec nginx; 4 | -------------------------------------------------------------------------------- /nightly/libressl/root/usr/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Welcome to nginx! 5 | 12 | 13 | 14 |

Welcome to nginx!

15 |

The evild/alpine-nginx variant.

16 |

If you see this page, the nginx web server is successfully installed and 17 | working. Further configuration is required.

18 | 19 |

For online documentation and support please refer to 20 | nginx.org.
21 | Commercial support is available at 22 | nginx.com.

23 | 24 | 25 |

Thank you for using nginx.

26 | 27 | 28 | -------------------------------------------------------------------------------- /nightly/openssl/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM evild/alpine-base:3.0.0 2 | MAINTAINER Dominique HAAS 3 | 4 | ARG NGINX_VERSION=NIGHTLY 5 | 6 | RUN \ 7 | build_pkgs="build-base linux-headers openssl-dev pcre-dev curl zlib-dev gnupg" \ 8 | && runtime_pkgs="ca-certificates openssl pcre zlib" \ 9 | && apk --no-cache add ${build_pkgs} ${runtime_pkgs} \ 10 | && for key in $GPG_KEYS; do \ 11 | gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ 12 | done \ 13 | && mkdir -p /tmp/src \ 14 | && cd /tmp/src \ 15 | && curl -fSL http://hg.nginx.org/nginx/archive/tip.tar.gz -o nginx.tar.gz \ 16 | && tar -zxf nginx.tar.gz \ 17 | && cd nginx-*/ \ 18 | && ./auto/configure \ 19 | --user=www-data \ 20 | --group=www-data \ 21 | --sbin-path=/usr/sbin/nginx \ 22 | --with-http_ssl_module \ 23 | --with-http_realip_module \ 24 | --with-http_addition_module \ 25 | --with-http_sub_module \ 26 | --with-http_dav_module \ 27 | --with-http_flv_module \ 28 | --with-http_mp4_module \ 29 | --with-http_gunzip_module \ 30 | --with-http_gzip_static_module \ 31 | --with-http_random_index_module \ 32 | --with-http_secure_link_module \ 33 | --with-http_stub_status_module \ 34 | --with-http_auth_request_module \ 35 | --with-mail \ 36 | --with-mail_ssl_module \ 37 | --with-file-aio \ 38 | --with-ipv6 \ 39 | --with-threads \ 40 | --with-stream \ 41 | --with-stream_ssl_module \ 42 | --with-http_v2_module \ 43 | --prefix=/etc/nginx \ 44 | --http-log-path=/var/log/nginx/access.log \ 45 | --error-log-path=/var/log/nginx/error.log \ 46 | && make -j $(getconf _NPROCESSORS_ONLN) \ 47 | && make install \ 48 | && make clean \ 49 | && rm -rf /tmp/ /root/.gnupg \ 50 | && strip -s /usr/sbin/nginx \ 51 | && apk del ${build_pkgs} \ 52 | && adduser -D www-data \ 53 | && ln -sf /dev/stdout /var/log/nginx/access.log \ 54 | && ln -sf /dev/stderr /var/log/nginx/error.log 55 | 56 | ADD root / 57 | 58 | EXPOSE 80 443 59 | -------------------------------------------------------------------------------- /nightly/openssl/root/etc/nginx/conf.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | server_name ""; 4 | 5 | root /usr/html; 6 | index index.html; 7 | 8 | location /favicon.ico { 9 | log_not_found off; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /nightly/openssl/root/etc/nginx/conf/nginx.conf: -------------------------------------------------------------------------------- 1 | user www-data; 2 | worker_processes 1; 3 | 4 | daemon off; 5 | 6 | events { 7 | worker_connections 1024; 8 | } 9 | 10 | error_log /var/log/nginx/error.log warn; 11 | pid /var/run/nginx.pid; 12 | 13 | http { 14 | include /etc/nginx/conf/mime.types; 15 | default_type application/octet-stream; 16 | 17 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 18 | '$status $body_bytes_sent "$http_referer" ' 19 | '"$http_user_agent" "$http_x_forwarded_for"'; 20 | 21 | access_log /var/log/nginx/access.log main; 22 | 23 | sendfile on; 24 | #tcp_nopush on; 25 | 26 | keepalive_timeout 65; 27 | 28 | gzip on; 29 | 30 | include /etc/nginx/conf.d/*.conf; 31 | 32 | } 33 | -------------------------------------------------------------------------------- /nightly/openssl/root/etc/services.d/nginx/finish: -------------------------------------------------------------------------------- 1 | #!/usr/bin/execlineb -S1 2 | 3 | # only tell s6 to bring down the entire container, if it isn't already doing so 4 | # http://skarnet.org/software/s6/s6-supervise.html 5 | if { s6-test ${1} -ne 0 } 6 | if { s6-test ${1} -ne 256 } 7 | 8 | s6-svscanctl -t /var/run/s6/services 9 | -------------------------------------------------------------------------------- /nightly/openssl/root/etc/services.d/nginx/run: -------------------------------------------------------------------------------- 1 | #!/usr/bin/with-contenv sh 2 | 3 | exec nginx; 4 | -------------------------------------------------------------------------------- /nightly/openssl/root/usr/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Welcome to nginx! 5 | 12 | 13 | 14 |

Welcome to nginx!

15 |

The evild/alpine-nginx variant.

16 |

If you see this page, the nginx web server is successfully installed and 17 | working. Further configuration is required.

18 | 19 |

For online documentation and support please refer to 20 | nginx.org.
21 | Commercial support is available at 22 | nginx.com.

23 | 24 | 25 |

Thank you for using nginx.

26 | 27 | 28 | -------------------------------------------------------------------------------- /stable/libressl/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM evild/alpine-base:3.0.0 2 | MAINTAINER Dominique HAAS 3 | 4 | ARG NGINX_VERSION=1.10.2 5 | ARG LIBRESSL_VERSION=2.4.3 6 | ENV GPG_KEYS \ 7 | B0F4253373F8F6F510D42178520A9993A1C052F8 \ 8 | A1EB079B8D3EB92B4EBD3139663AF51BD5E4D8D5 9 | 10 | RUN \ 11 | build_pkgs="build-base linux-headers pcre-dev curl zlib-dev gnupg" \ 12 | && runtime_pkgs="ca-certificates pcre zlib" \ 13 | && apk --no-cache add ${build_pkgs} ${runtime_pkgs} \ 14 | && for key in $GPG_KEYS; do \ 15 | gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ 16 | done \ 17 | && mkdir /tmp/libressl \ 18 | && cd /tmp/libressl \ 19 | && curl -fSL http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz -o libressl.tar.gz \ 20 | && curl -fSL http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz.asc -o libressl.tar.gz.asc \ 21 | && gpg --batch --verify libressl.tar.gz.asc libressl.tar.gz \ 22 | && tar -zxf libressl.tar.gz \ 23 | && cd libressl-${LIBRESSL_VERSION} \ 24 | && ./configure \ 25 | LDFLAGS=-lrt \ 26 | --prefix=/tmp/libressl/.openssl/ \ 27 | && make install-strip -j $(getconf _NPROCESSORS_ONLN) \ 28 | && mkdir -p /tmp/src \ 29 | && cd /tmp/src \ 30 | && curl -fSL http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz -o nginx.tar.gz \ 31 | && curl -fSL http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz.asc -o nginx.tar.gz.asc \ 32 | && gpg --batch --verify nginx.tar.gz.asc nginx.tar.gz \ 33 | && tar -zxf nginx.tar.gz \ 34 | && cd nginx-${NGINX_VERSION} \ 35 | && ./configure \ 36 | --user=www-data \ 37 | --group=www-data \ 38 | --sbin-path=/usr/sbin/nginx \ 39 | --with-http_ssl_module \ 40 | --with-openssl=/tmp/libressl/libressl-${LIBRESSL_VERSION} \ 41 | --with-ld-opt="-lrt" \ 42 | --with-http_realip_module \ 43 | --with-http_addition_module \ 44 | --with-http_sub_module \ 45 | --with-http_dav_module \ 46 | --with-http_flv_module \ 47 | --with-http_mp4_module \ 48 | --with-http_gunzip_module \ 49 | --with-http_gzip_static_module \ 50 | --with-http_random_index_module \ 51 | --with-http_secure_link_module \ 52 | --with-http_stub_status_module \ 53 | --with-http_auth_request_module \ 54 | --with-mail \ 55 | --with-mail_ssl_module \ 56 | --with-file-aio \ 57 | --with-ipv6 \ 58 | --with-threads \ 59 | --with-stream \ 60 | --with-stream_ssl_module \ 61 | --with-http_v2_module \ 62 | --prefix=/etc/nginx \ 63 | --http-log-path=/var/log/nginx/access.log \ 64 | --error-log-path=/var/log/nginx/error.log \ 65 | && make -j $(getconf _NPROCESSORS_ONLN) \ 66 | && make install \ 67 | && make clean \ 68 | && rm -rf /tmp/ /root/.gnupg \ 69 | && strip -s /usr/sbin/nginx \ 70 | && apk del ${build_pkgs} \ 71 | && adduser -D www-data \ 72 | && ln -sf /dev/stdout /var/log/nginx/access.log \ 73 | && ln -sf /dev/stderr /var/log/nginx/error.log 74 | 75 | ADD root / 76 | 77 | EXPOSE 80 443 78 | -------------------------------------------------------------------------------- /stable/libressl/root/etc/nginx/conf.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | server_name ""; 4 | 5 | root /usr/html; 6 | index index.html; 7 | 8 | location /favicon.ico { 9 | log_not_found off; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /stable/libressl/root/etc/nginx/conf/nginx.conf: -------------------------------------------------------------------------------- 1 | user www-data; 2 | worker_processes 1; 3 | 4 | daemon off; 5 | 6 | events { 7 | worker_connections 1024; 8 | } 9 | 10 | error_log /var/log/nginx/error.log warn; 11 | pid /var/run/nginx.pid; 12 | 13 | http { 14 | include /etc/nginx/conf/mime.types; 15 | default_type application/octet-stream; 16 | 17 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 18 | '$status $body_bytes_sent "$http_referer" ' 19 | '"$http_user_agent" "$http_x_forwarded_for"'; 20 | 21 | access_log /var/log/nginx/access.log main; 22 | 23 | sendfile on; 24 | #tcp_nopush on; 25 | 26 | keepalive_timeout 65; 27 | 28 | gzip on; 29 | 30 | include /etc/nginx/conf.d/*.conf; 31 | 32 | } 33 | -------------------------------------------------------------------------------- /stable/libressl/root/etc/services.d/nginx/finish: -------------------------------------------------------------------------------- 1 | #!/usr/bin/execlineb -S1 2 | 3 | # only tell s6 to bring down the entire container, if it isn't already doing so 4 | # http://skarnet.org/software/s6/s6-supervise.html 5 | if { s6-test ${1} -ne 0 } 6 | if { s6-test ${1} -ne 256 } 7 | 8 | s6-svscanctl -t /var/run/s6/services 9 | -------------------------------------------------------------------------------- /stable/libressl/root/etc/services.d/nginx/run: -------------------------------------------------------------------------------- 1 | #!/usr/bin/with-contenv sh 2 | 3 | exec nginx; 4 | -------------------------------------------------------------------------------- /stable/libressl/root/usr/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Welcome to nginx! 5 | 12 | 13 | 14 |

Welcome to nginx!

15 |

The evild/alpine-nginx variant.

16 |

If you see this page, the nginx web server is successfully installed and 17 | working. Further configuration is required.

18 | 19 |

For online documentation and support please refer to 20 | nginx.org.
21 | Commercial support is available at 22 | nginx.com.

23 | 24 | 25 |

Thank you for using nginx.

26 | 27 | 28 | -------------------------------------------------------------------------------- /stable/openssl/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM evild/alpine-base:3.0.0 2 | MAINTAINER Dominique HAAS 3 | 4 | ARG NGINX_VERSION=1.10.2 5 | ENV GPG_KEYS B0F4253373F8F6F510D42178520A9993A1C052F8 6 | 7 | RUN \ 8 | build_pkgs="build-base linux-headers openssl-dev pcre-dev curl zlib-dev gnupg" \ 9 | && runtime_pkgs="ca-certificates openssl pcre zlib" \ 10 | && apk --no-cache add ${build_pkgs} ${runtime_pkgs} \ 11 | && for key in $GPG_KEYS; do \ 12 | gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ 13 | done \ 14 | && mkdir -p /tmp/src \ 15 | && cd /tmp/src \ 16 | && curl -fSL http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz -o nginx.tar.gz \ 17 | && curl -fSL http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz.asc -o nginx.tar.gz.asc \ 18 | && gpg --batch --verify nginx.tar.gz.asc nginx.tar.gz \ 19 | && tar -zxf nginx.tar.gz \ 20 | && cd nginx-${NGINX_VERSION} \ 21 | && ./configure \ 22 | --user=www-data \ 23 | --group=www-data \ 24 | --sbin-path=/usr/sbin/nginx \ 25 | --with-http_ssl_module \ 26 | --with-http_realip_module \ 27 | --with-http_addition_module \ 28 | --with-http_sub_module \ 29 | --with-http_dav_module \ 30 | --with-http_flv_module \ 31 | --with-http_mp4_module \ 32 | --with-http_gunzip_module \ 33 | --with-http_gzip_static_module \ 34 | --with-http_random_index_module \ 35 | --with-http_secure_link_module \ 36 | --with-http_stub_status_module \ 37 | --with-http_auth_request_module \ 38 | --with-mail \ 39 | --with-mail_ssl_module \ 40 | --with-file-aio \ 41 | --with-ipv6 \ 42 | --with-threads \ 43 | --with-stream \ 44 | --with-stream_ssl_module \ 45 | --with-http_v2_module \ 46 | --prefix=/etc/nginx \ 47 | --http-log-path=/var/log/nginx/access.log \ 48 | --error-log-path=/var/log/nginx/error.log \ 49 | && make -j $(getconf _NPROCESSORS_ONLN) \ 50 | && make install \ 51 | && make clean \ 52 | && rm -rf /tmp/ /root/.gnupg \ 53 | && strip -s /usr/sbin/nginx \ 54 | && apk del ${build_pkgs} \ 55 | && adduser -D www-data \ 56 | && ln -sf /dev/stdout /var/log/nginx/access.log \ 57 | && ln -sf /dev/stderr /var/log/nginx/error.log 58 | 59 | ADD root / 60 | 61 | EXPOSE 80 443 62 | -------------------------------------------------------------------------------- /stable/openssl/root/etc/nginx/conf.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | server_name ""; 4 | 5 | root /usr/html; 6 | index index.html; 7 | 8 | location /favicon.ico { 9 | log_not_found off; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /stable/openssl/root/etc/nginx/conf/nginx.conf: -------------------------------------------------------------------------------- 1 | user www-data; 2 | worker_processes 1; 3 | 4 | daemon off; 5 | 6 | events { 7 | worker_connections 1024; 8 | } 9 | 10 | error_log /var/log/nginx/error.log warn; 11 | pid /var/run/nginx.pid; 12 | 13 | http { 14 | include /etc/nginx/conf/mime.types; 15 | default_type application/octet-stream; 16 | 17 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 18 | '$status $body_bytes_sent "$http_referer" ' 19 | '"$http_user_agent" "$http_x_forwarded_for"'; 20 | 21 | access_log /var/log/nginx/access.log main; 22 | 23 | sendfile on; 24 | #tcp_nopush on; 25 | 26 | keepalive_timeout 65; 27 | 28 | gzip on; 29 | 30 | include /etc/nginx/conf.d/*.conf; 31 | 32 | } 33 | -------------------------------------------------------------------------------- /stable/openssl/root/etc/services.d/nginx/finish: -------------------------------------------------------------------------------- 1 | #!/usr/bin/execlineb -S1 2 | 3 | # only tell s6 to bring down the entire container, if it isn't already doing so 4 | # http://skarnet.org/software/s6/s6-supervise.html 5 | if { s6-test ${1} -ne 0 } 6 | if { s6-test ${1} -ne 256 } 7 | 8 | s6-svscanctl -t /var/run/s6/services 9 | -------------------------------------------------------------------------------- /stable/openssl/root/etc/services.d/nginx/run: -------------------------------------------------------------------------------- 1 | #!/usr/bin/with-contenv sh 2 | 3 | exec nginx; 4 | -------------------------------------------------------------------------------- /stable/openssl/root/usr/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Welcome to nginx! 5 | 12 | 13 | 14 |

Welcome to nginx!

15 |

The evild/alpine-nginx variant.

16 |

If you see this page, the nginx web server is successfully installed and 17 | working. Further configuration is required.

18 | 19 |

For online documentation and support please refer to 20 | nginx.org.
21 | Commercial support is available at 22 | nginx.com.

23 | 24 | 25 |

Thank you for using nginx.

26 | 27 | 28 | --------------------------------------------------------------------------------