From bddbbfc0490942696368c1517a28cc628dba69b0 Mon Sep 17 00:00:00 2001 From: AndersonPEM Date: Tue, 13 Feb 2024 11:05:59 +0000 Subject: [PATCH] Dockerfile: The ADD statement now supports changing permissions on the fly. No RUN chmod necessary. (#890) Co-authored-by: Anderson Souza --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f2e44f8..c92d925 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,9 @@ Here's a list of sample `Dockerfile`s that install the GD and xdebug PHP extensi ```Dockerfile FROM php:7.2-cli -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ +ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && \ - install-php-extensions gd xdebug +RUN install-php-extensions gd xdebug ``` ### Downloading the script on the fly with `curl`