Sand Fox (old posts, page 7)
-
Installing Composer in Docker the 2020-s Way
While the original way is still valid, in Docker it's now easier to copy the Composer executable from its Docker image.
or for PHP < 7.2.5
Please note that without the installer, dependencies won't be checked, so you also need to install git and/or zip, and preferably optional dependencies like mbstring too.
Found accidentally on the Stack Overflow. There is also another interesting and underliked method for the case when you don't want to keep the composer executable and cache files in your image.
-
LGPL is a bad practice
TL;DR: Don't use LGPL, avoid library-based copyleft in general.
The closest acceptable no-brainer replacement should be GNU GPL with Classpath Exception, but the concept of library-based copyleft itself is flawed. It's better to consider MPL (less copyleft) or full GPL (more copyleft).