From 95e729b34cb835e51fed7276d3ccf43f4dc05358 Mon Sep 17 00:00:00 2001 From: freezy Date: Wed, 9 Oct 2019 17:11:51 +0200 Subject: [PATCH] building docker image for easier install --- Dockerfile | 4 ++++ README.md | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b2b0c1a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM bash + +COPY install-php-extensions /usr/bin/install-php-extensions +RUN chmod +x /usr/bin/install-php-extensions diff --git a/README.md b/README.md index e7f6a9c..7196778 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,16 @@ RUN chmod uga+x /usr/local/bin/install-php-extensions && sync && \ install-php-extensions gd xdebug ``` +Installation via COPY --from + +``` +FROM php:7.2-cli + +COPY --from=docker-install-php-extensions /usr/bin/install-php-extensions /usr/bin/ + +RUN install-php-extensions gd xdebug +``` + `install-php-extensions` will install all the required APT packages. If you want to remove the APT development packages (which shouldn't be needed after the PHP extensions have been installed) and other no longer required packages, you can use the `--cleanup` option (**EXPERIMENTAL**): ```