NGINX custom compilation with stream module enabled. This is just for learning and PoC purposes
docker pull ghcr.io/mistrasteos/custom-nginx:latest
docker build \
--build-arg PCRE_VERSION=2-10.43 \
--build-arg NGINX_VERSION=1.26.3 \
-t custom-nginx:$(date +"%Y%d%d%H%M%S") \
-t custom-nginx:latest \
.
docker run -it --rm \
--name custom-nginx \
-p 8080:80 \
ghcr.io/mistrasteos/custom-nginx:latest
Change -p 8080:80 as configured in your custom nginx.comf
docker run -it --rm \
--name custom-nginx \
-v /custom.nginx.conf:/usr/local/nginx/nginx.conf
-p 8080:80 \
ghcr.io/mistrasteos/custom-nginx:latest
- OpenSSL and Zlib Dockerfile sections are commented as they take too much time to compile and I just wanted streams enabled. Feel free to enable or disable them.
- https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/#sources
- https://docs.github.com/en/actions/writing-workflows/quickstart
- https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-docker-images
- https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
- https://docs.docker.com/build/building/variables/#arg-usage-example
- Image is too big, maybe use another base image