Skip to content

Tob1as/static-nginx

Repository files navigation

| GitHub | DockerHub | Quay.io |

Static NGINX

This is a static build/binary of NGINX.

What is nginx?

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.

wikipedia.org/wiki/Nginx

logo

Container Images

These container images can be used almost in the same way as the official images (library/nginx & nginxinc/nginx-unprivileged). However, they do not contain a shell and therefore no envsubst (for templates).

Supported tags and respective Dockerfile links

Alternate static nginx images can be found here: https://github.com/Tob1as/docker-tools

How to use this image

Run NGINX container:

# privileged / root user
$ docker run --name some-nginx -p 8080:80 -v ${PWD}/html:/usr/share/nginx/html:ro -d docker.io/tobi312/static-nginx:latest

# unprivileged / nginx user
$ docker run --name some-nginx -p 8080:8080 -v ${PWD}/html:/usr/share/nginx/html:ro -d docker.io/tobi312/static-nginx:latest-unprivileged

Use in own image:

# build on alpine:
COPY --from=ghcr.io/tob1as/static-nginx:base-alpine /nginx /
# build on debian:
COPY --from=ghcr.io/tob1as/static-nginx:base-debian /nginx /