The current setup for Dev Containers was not working, with multiple
different errors. So, in order to restore its funcionality (and allow
for things like linting and debugging), the following changes were made:
- The Dockerfile was severely alterered. Now, the `docker-php-ext-enable` binary is installed before its usage,
it points to the correct PHP binary, and we install Composer for for
loading dev-dependencies later-on.
- Moved the "postCreateCommand" section (defined on the `devcontainer.json` file) into its own script file (for a
more readable experience)
- On the post-creation script, moved the `xdebug.ini` to the correct
directory (alongside the PHP-FPM bin), installed PHPUnit,
PHPCodesniffer (and the 'PHP Compatibility' sniffer) with Composer on
a global location, and changed owner of the `cache` directory
- Changed VSCode-specific customization setting in order to point to the
update some binary paths. Also made sure globally-installed composer
packages binaries are accessible via PATHdocker-php-ext-enable
* Docker from Debian base image
* Fix expose https://github.com/RSS-Bridge/rss-bridge/discussions/3234
* Re-fix better logs https://github.com/RSS-Bridge/rss-bridge/pull/3333
* Update to Debian 12 Bookworm instead of Debian 10 Buster
* Use Debian packaging instead of having to keep track of and manually install -dev libraries, and with LTS support
* Update to PHP 8.2 instead of PHP 8.0
* Fix php.ini location
* Minor order changes
To optimise caching