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
parent
4e5f6152b9
commit
bddbbfc049
|
@ -26,10 +26,9 @@ Here's a list of sample `Dockerfile`s that install the GD and xdebug PHP extensi
|
||||||
```Dockerfile
|
```Dockerfile
|
||||||
FROM php:7.2-cli
|
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 && \
|
RUN install-php-extensions gd xdebug
|
||||||
install-php-extensions gd xdebug
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Downloading the script on the fly with `curl`
|
### Downloading the script on the fly with `curl`
|
||||||
|
|
Loading…
Reference in New Issue