Skip to content

Latest commit

 

History

History

docker-nginx

Docker: alpine + nginx

A simple alpine linux + nginx container using envsubst to replace Environment Variables on start.

🧷 Please consider digest pinning when utilising a third-party Docker image, the Container Registry page for sparse-docker-nginx provides a full list of tags and their respective digests.

FROM ghcr.io/pr-mpt/sparse-docker-nginx

COPY index.html ./

Configure nginx

You may provide a custom nginx configuration by writing your configuration to default.conf, e.g:

FROM ghcr.io/pr-mpt/sparse-docker-nginx

COPY nginx.conf /etc/nginx/conf.d/default.conf

COPY index.html ./