From 49b45199b8451daee3c35ff405ae84e500f4babf Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 26 Sep 2018 15:06:44 +0200 Subject: [PATCH] setup 'php-fpm' dockerfile to install extension PDO --- docker-compose.yml | 4 +++- php-fpm.dockerfile | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 php-fpm.dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index dd5f35d..b0d18b1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,9 @@ services: - '3306' php-fpm: - image: php:7-fpm + build: + context: . + dockerfile: php-fpm.dockerfile container_name: php-fpm depends_on: - mariadb diff --git a/php-fpm.dockerfile b/php-fpm.dockerfile new file mode 100644 index 0000000..a3fc47e --- /dev/null +++ b/php-fpm.dockerfile @@ -0,0 +1,2 @@ +FROM php:7-fpm +RUN docker-php-ext-install mbstring pdo pdo_mysql \ No newline at end of file