Skip to content

Potentially provide a version without perl module #154

@M-SIGMA

Description

@M-SIGMA

Hi,

I was doing a little digging around with regards to the images provided as standard and was looking for the smallest provided image of a local NGINX container for development purposes. Upon inspection I noticed that the downloading and use of the NGINX perl module is included in docker build process for all versions of these images.

Upon creating my own version of the provided Alpine (tagged 1.11-alpine) image without the Perl module I noticed a significant saving in container size.

Repository Tag Image ID Created Size
nginx-noperl 1.11-alpine-noperl affa9237547c Omitted 13.2 MB
nginx 1.11-alpine 0ae090dba3ab Omitted 54.28 MB
nginx latest 6b914bbcb89e Omitted 181.8 MB

I think for those who simply want an NGINX container for development purposes, or potentially also for those that are trying to reduce storage, a separate tagged version without perl would be very useful, as many don't require the Perl module or the additional functionalities/capabilities it provide and the addition of it merely inflates the size of the image.

As you can see the difference between the Alpine version of the image WITH Perl and the that of the Alpine version of the image WITHOUT Perl is a huge difference in size. (Around ~75% saved)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions