1
0
mirror of https://github.com/dcarrillo/docker-nginx.git synced 2024-11-14 16:01:12 +00:00
Go to file
2021-02-19 17:06:13 +01:00
.github/workflows Bump nginx version to 1.19.1 2020-07-11 12:34:12 +02:00
tests Bump nginx version to 1.18.0 2020-04-24 17:33:24 +02:00
build.sh Add linting at github actions 2020-03-07 19:08:09 +01:00
conf.env Bump version to 1.19.6 2020-12-26 17:25:39 +01:00
Dockerfile Bump Alpine base image to 3.13 2021-02-19 17:06:13 +01:00
LICENSE First commit 2019-12-15 12:10:37 +01:00
README.md Add github actions badge 2020-07-04 12:30:43 +02:00

minimal nginx

build

Nginx docker image with a minimal set of modules.

Current modules:

  • geoip2
  • stream
  • http_ssl_module
  • http_v2_module
  • http_stub_status_module

Configuration

Edit conf.env

NGINX_VERSION=x.xx.x          # Nginx version to build from
NGX_GEOIP2_VERSION=x.x        # Nginx geoip2 version to build from
DOCKER_IMAGE=dcarrillo/nginx  # Docker image

Build

Build locally:

./build.sh

Build locally and upload to a registry (you must be logged in to the registry)

./build.sh --push

Build locally, tag image as latest and upload to a registry (you must be logged in to the registry)

./build.sh --push --latest

Testing

Prerequisites:

  • docker
  • openssl
  • curl
# build local image
./build.sh

# run tests
./tests/test.sh

Who is using this image

ifconfig.es is a web service that displays information about your connection, including IP address, geolocation and request http headers. You can easily get your public ip address using curl, wget and other command-line http clients.