Installing Composer in the official PHP Docker image

Composer is a dependency management tool for PHP that has been around for almost 8 years now, but it’s still not included in the official Docker images. Composer recommends to automate the install using their script. It needs to be downloaded, but the php:7.4-apache image does not contain wget. FROM php:7.4-apache RUN apt update && apt-get install -y wget RUN wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer -O - -q | php -- --quiet --version=1.10.15 RUN mv composer....

November 14, 2020

WordPress as a 12-factor app

PHP was the first programming (scripting, yes, I know) language that I learned. I had some experience using and managing WordPress, I also liked its features, and I knew that all my needs would already be covered by some plugin of the WordPress ecosystem. Still, I almost didn’t use WordPress to power my blog. I wanted my blog to be versioned (in Git), packaged in a Docker container, and cloud ready....

June 20, 2020