You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The images created secondarily from the original source (FROM scratch as php-dev COPY --from=php-base . /) do not inherit the environment variables from the base. The file structure is the same, but other Docker set items such as ENV and ENTRYPOINT are not inherited.
ENV specifically causes an issue with compiling xdebug (or other php extensions) because the script for it expects PHP_INI_DIR=/usr/local/etc/php to exist.
The text was updated successfully, but these errors were encountered:
@smfsh Do you happen to know what is setting these environment variables in the php-base image to begin with?
First time I'm thinking about this issue but one option we might do is printenv into a file and then import that again after the move. Don't 100% know if it will work but I can test soon.
I this a solution to this will be important to make maintenance and expansion quicker and easier.
The images created secondarily from the original source (
FROM scratch as php-dev COPY --from=php-base . /
) do not inherit the environment variables from the base. The file structure is the same, but other Docker set items such as ENV and ENTRYPOINT are not inherited.ENV specifically causes an issue with compiling xdebug (or other php extensions) because the script for it expects
PHP_INI_DIR=/usr/local/etc/php
to exist.The text was updated successfully, but these errors were encountered: