Building PHP docker images in a better way with Wolfi-OS

Currently, the de-facto standard to Dockerizing PHP applications is to use the Docker PHP official image. This is maintained by Docker itself and community members and has compiled PHP with no extensions. To install extensions, we have to do this in our Dockerfile: FROMphp:8.2-cliRUN docker-php-ext-install pdo pdo_mysql curlThe helper script docker-php-ext-install does unpack the PHP source code and installs the given extensions. For some extensions like gd, we need also libraries installed like libpng and so on....

April 6, 2024 · 8 min · Shyim

Devenv: Compose a Developer Environment easily for PHP with Nix

I have been using Nix for almost four years and also maintaining some packages at nixpkgs (the primary Nix repository). The Nix learning curve is complicated, so I could not get my colleagues into it. But Devenv made it so easy to compose a developer environment, so I got their attraction, and some of them switched already, and we are looking to where we can use it too. What is Devenv?...

December 25, 2022 · 9 min · Shyim