Skip to content

Remove php src the right way for lightweight containers #234

@shouze

Description

@shouze

Hi guys,

in the same way we do for alpine packages in #206... maybe we can think about removing /usr/src/php from the produced container image & make things easy to restore it?

Basically, I was thinking about:

As /usr/src/php for php7 weights around 190M inside a running alpine image, I guess we can reduce the final image size by 10 to 20M (which is about the sizes of compressed php releases source code artifacts.).

To sum up, this can be around 25 to 50% gain for the final image size.

Also, this can be applied to non Alpine Linux images I guess, as it was tried with a non working approach in #96.

ping @tianon @ncopa what do you thing about that?

Metadata

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