Closed E4est closed 2 years ago
Hi, please pull the files again. I've fixed it for the moment. I will work on a solution so that it is dynamic. Regards, Klaus
A dynamic configuration of the path seems to be tricky. Docker seems not to allow that because it could be security problem. Anybody who has an idea?
There might be a better way (I'm not that great with sed
), but
php -i | grep ^extension_dir | sed -E 's/^[^ ]* => [^ ]* => (.*)$/\1/'
will give you the full directory path.
Closed, I will have to update the build file every time Dlib gets updated. By design dynamic paths are not allowed (docker security rule).
When I am trying to build the Dockerfile, I get
COPY failed: stat usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdlib.so: file does not exist
Looking further into the output, it looks like in STEP 7 another Zend Module Api Version is used than expected.
Changing line 58
COPY --from=builder /usr/local/lib/php/extensions/no-debug-non-zts-20190902/pdlib.so /usr/local/lib/php/extensions/no-debug-non-zts-20190902/
toCOPY --from=builder /usr/local/lib/php/extensions/no-debug-non-zts-20200930/pdlib.so /usr/local/lib/php/extensions/no-debug-non-zts-20200930/
seems to resolve the issue for now.The only problem I see is that it might break again in the future. Any ideas on how to permanently fix this for future versions?