Dockerfile: The ADD statement now supports changing permissions on the fly. No RUN chmod necessary. (#890)

Co-authored-by: Anderson Souza <anderson.s@tlf.com>
pull/893/head
AndersonPEM 2024-02-13 11:05:59 +00:00 committed by GitHub
parent 4e5f6152b9
commit bddbbfc049
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -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`