Suggest how to abort "docker build" if curl fails
parent
732fe6577a
commit
45759d1b6c
|
@ -48,7 +48,7 @@ RUN curl -sSLf \
|
|||
```Dockerfile
|
||||
FROM php:8.2-cli
|
||||
|
||||
RUN curl -sSL https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - | sh -s \
|
||||
RUN ( curl -sSLf https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - || echo 'return 1' ) | sh -s \
|
||||
gd xdebug
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue