diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index c86c0fd..3512f1a 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -36,6 +36,7 @@ jobs: auth.docker.io:443 dl-cdn.alpinelinux.org:443 github.com:443 + objects.githubusercontent.com:443 pecl.php.net:443 production.cloudflare.docker.com:443 productionresultssa4.blob.core.windows.net:443 @@ -74,6 +75,7 @@ jobs: allowed-endpoints: > api.github.com:443 github.com:443 + objects.githubusercontent.com:443 - name: Checkout source code uses: actions/checkout@v4 @@ -109,6 +111,7 @@ jobs: api.github.com:443 ghcr.io:443 github.com:443 + objects.githubusercontent.com:443 # Need source code to push README file contents to Docker Hub - name: Checkout source code diff --git a/Dockerfile b/Dockerfile index 527dada..c1e2f8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,9 +24,12 @@ RUN apk add --no-cache \ libwebp-dev \ libxml2-dev \ libzip-dev \ - pcre-dev ${PHPIZE_DEPS} \ - && cd /tmp && git clone https://github.com/Imagick/imagick.git \ - && MAKEFLAGS="-j $(nproc)" pecl install /tmp/imagick/package.xml \ + pcre-dev ${PHPIZE_DEPS} ; +ADD --chmod=0755 \ + https://github.com/mlocati/docker-php-extension-installer/releases/download/2.6.3/install-php-extensions \ + /usr/local/bin/ +# TODO: Use latest released version, after https://github.com/Imagick/imagick/issues/640 is fixed +RUN install-php-extensions imagick/imagick@28f27044e435a2b203e32675e942eb8de620ee58 \ && docker-php-ext-configure opcache --enable-opcache \ && docker-php-ext-configure intl \ && docker-php-ext-configure exif \