Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variable for extension dir #1115

Closed
t3easy opened this issue Jan 13, 2021 · 1 comment
Closed

Environment variable for extension dir #1115

t3easy opened this issue Jan 13, 2021 · 1 comment
Labels
Request Request for image modification or feature

Comments

@t3easy
Copy link

t3easy commented Jan 13, 2021

For a multi step build, it would be helpful to have an environment variable for the extension folder.
Something like

ENV PHP_EXT_DIR /usr/local/lib/php/extensions/no-debug-non-zts-20190902

This would make it much easy to build extensions in one step and copy the builded extensions to the final image.
This safes build time, because all cleanup commands can be omitted.

For now I use a build arg with a matrix in my Dockerfile/GitHub Workflow.
https://github.com/t3easy/docker-php/blob/main/Dockerfile#L2
https://github.com/t3easy/docker-php/blob/main/Dockerfile#L110-L119
https://github.com/t3easy/docker-php/blob/main/.github/workflows/ci.yml#L16

@wglambert wglambert added the Request Request for image modification or feature label Jan 13, 2021
@tianon
Copy link
Member

tianon commented Jan 13, 2021

Duplicate of #721

@tianon tianon marked this as a duplicate of #721 Jan 13, 2021
@tianon tianon closed this as completed Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request Request for image modification or feature
Projects
None yet
Development

No branches or pull requests

3 participants