FROM wordpress:4-php7.2-apache # install the PHP extensions we need RUN set -ex; \ \ apt-get update; \ apt-get install -y \ libsqlite3-dev \ libpng-dev \ unzip \ ; \ rm -rf /var/lib/apt/lists/*; \ \ docker-php-ext-install gd pdo pdo_sqlite # TODO consider removing the *-dev deps and only keeping the necessary lib* packages ADD https://downloads.wordpress.org/plugin/sqlite-integration.1.8.1.zip /usr/src/wordpress/wp-content/plugins/ RUN unzip /usr/src/wordpress/wp-content/plugins/sqlite-integration.1.8.1.zip -d /usr/src/wordpress/wp-content/plugins/ && \ rm /usr/src/wordpress/wp-content/plugins/sqlite-integration.1.8.1.zip && \ cp /usr/src/wordpress/wp-content/plugins/sqlite-integration/db.php /usr/src/wordpress/wp-content/ COPY docker-entrypoint.sh /usr/local/bin/ ENV WORDPRESS_DB_FILE=database.sqlite