Skip to content

Remove nginx-debug from alpine-slim images #943

Open
@ferferga

Description

Describe the solution you'd like

The alpine-slim images ship with a debug version of nginx at /usr/sbin/nginx-debug. This binary, intended just for debugging purposes, should not be included in the image since it increases the size unnecessarily, while the goal for slim images is to provide the bare minimum to have nginx working (and debugging it's not the bare minimum).

Shipping nginx-debug its like shipping an application to production with debugging symbols, which is definitely a bad practice.

Describe alternatives you've considered

I'm currently building my own version of this container and I remove that binary, but I believe this specifically is something that should come out of the box for everyone.

Additional context

If a user requires debugging for some special circumstance, a simple switch to the equivalent non slim tag would be enough.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions