Nginx with s6-overlay.
- Nginx: %%S6_NGINX_VERSION%%
- S6 Overlay: %%S6_OVERLAY_VERSION%%
- Multi-platform image
- Use official nginx container configurations
Registry | Image |
---|---|
Docker Hub | docker.io/socheatsok78/nginx-s6:%%S6_NGINX_VERSION%% |
GitHub Package Registry | ghcr.io/socheatsok78/nginx-s6:%%S6_NGINX_VERSION%% |
$ docker run --name some-nginx -v /some/content:/usr/share/nginx/html:ro -d socheatsok78/nginx-s6:%%S6_NGINX_VERSION%%
Alternatively, a simple Dockerfile can be used to generate a new image that includes the necessary content (which is a much cleaner solution than the bind mount above):
FROM socheatsok78/nginx-s6:%%S6_NGINX_VERSION%%
COPY static-html-directory /usr/share/nginx/html
Place this file in the same directory as your directory of content ("static-html-directory"), run docker build -t some-content-nginx .
, then start your container:
$ docker run --name some-nginx -d some-content-nginx
The usage guide are the same as the official nginx docker image.
For s6-overlay usage guide see: https://github.com/just-containers/s6-overlay/#readme
Licensed under the MIT.