Docker-Webstack
Docker-Webstack copied to clipboard
ln: /usr/bin/php: File exists
Issue
When building the container, I run into the error ln: /usr/bin/php: File exists. This was not the case before yesterday! What is going on?
Reason
As of Jan 18th 2024 the underlying Alpine Linux versions got bumped for the 8.1 and 8.2 versions of the webstack. If you are installing the PHP CLI package (php81 or php82) and were making a symlink before (e.g. ln -s /usr/bin/php81 /usr/bin/php) this is now no longer needed as this symlink is provided by the package. Trying to do so will give the mentioned error.
Solution
Simply remove the creation of the symlink from your Dockerfile. Everything should work as before.