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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic PHP_EXTENSIONS #103

Closed
mhemrg opened this issue Dec 10, 2018 · 2 comments
Closed

Dynamic PHP_EXTENSIONS #103

mhemrg opened this issue Dec 10, 2018 · 2 comments

Comments

@mhemrg
Copy link
Contributor

mhemrg commented Dec 10, 2018

Hi, great job 馃憤
I want to set PHP_EXTENSIONS variable dynamically in my Dockerfile.

ONBUILD ENV PHP_EXTENSIONS=$(cat /var/www/html/exts.txt)

But Docker doesn't allow it. Can you please help me to do it?

@moufmouf
Copy link
Member

Hi @mhemrg ,

What are you looking to do exactly? And what base image are you using?

If you are using the fat image, I guess this should work?

Could you show me more of your Dockerfile?

@mhemrg
Copy link
Contributor Author

mhemrg commented Jan 2, 2019

Yes, I'm using the fat image.
It seems that Docker doesn't allow to run a bash script to get the value for an environment variable.
Here is my Dockerfile: https://github.com/liara-ir/laravel-platform/blob/master/Dockerfile
You can see that I've commented out that line.

@mhemrg mhemrg closed this as completed Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants