Closed toby-griffiths closed 2 months ago
For reference, I'm building for linux/amd64 using Docker for Mac on an M2 Mac, using the following command…
docker build --pull --platform linux/amd64 --target=api_platform_php --tag registry.goodcrm.co.uk:8843/api-v2-php:1.19.9 --push --progress=plain ./api
I copied your original Dockerfile
verbatim to a Dockerfile
locally and tried building it, and it built without issue, so perhaps there's something going wrong with the emulation of amd64 on your arm64 M2 Mac?
Thanks @tianon. I'll try building on a linux machine and see where I get to.
Im on an M2 chi and get a different error...
46.30 /usr/src/php/ext/intl/formatter/formatter_class.h:18:10: fatal error: php.h: No such file or directory
Removing this line makes the build work for me:
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so
I believe that line isn't necessary anymore since this PR https://github.com/docker-library/php/pull/1264
Removing…
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so
… didn't help. But it built fine on our server, so likely an issue with the emulation on Mac.
Closing issue as not an issue with PHP itself.
When I attempt to run this command I see the following error reported…
This has only just started happening (as well as ftp failing to install intermittently!?)
Any idea what might have changed about the image that could have caused this?
For reference I've just modified my Dockerfile from…
… to…
… because the whole command was failing with this error before I broke it apart…
Are these 2 separate issues, the intl install caused by breaking the command apart?
Can someone shed some light on why this is suddenly failing when it was working the other week?