Suggest how to abort "docker build" if curl fails

pull/936/head
Michele Locati 2024-07-08 09:02:17 +02:00
parent 732fe6577a
commit 45759d1b6c
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ RUN curl -sSLf \
```Dockerfile ```Dockerfile
FROM php:8.2-cli 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 gd xdebug
``` ```