Custom Docker image for PHP

I created a custom docker image for PHP that includes following: Custom PHP.ini file correct timezone configured Apache mod_rewrite enabled PHP PDO MySQL extension installed You can access it here. …and click here for Dockerfile link

My Site is now on Docker containers

My site and this blog is now completely on Docker containers. I really like the setup and it wasn’t too difficult to achieve. This will help me reduce my physical server to bare minimums required to keep Docker containers running. Docker is amazing and truly revolutionary!

Configuring GD and Freetype on WordPress Docker Image

This applies to official WordPress image but can be used with PHP image also. Create Dockerfile with following contents: FROM wordpress:latest # Install gd and freetype RUN apt-get -y update \ && apt-get -y install php5-gd freetype* \ && docker-php-ext-configure gd –with-freetype-dir=/usr/include/ –with-jpeg-dir=/usr/include/ \ && docker-php-ext-install -j$(nproc) gd Build your image docker build -t wordpress . Or you can use …

Read moreConfiguring GD and Freetype on WordPress Docker Image