diff --git a/docker/Dockerfile.api b/docker/Dockerfile.api index 68529b7..c475d2e 100644 --- a/docker/Dockerfile.api +++ b/docker/Dockerfile.api @@ -1,7 +1,8 @@ FROM php:8.3-fpm-alpine -RUN apk add --no-cache linux-headers=~6.7 \ - && docker-php-ext-install pcntl sockets +RUN apk add --no-cache linux-headers \ + && docker-php-ext-install pcntl sockets || \ + docker-php-ext-install pcntl COPY --from=composer:2 /usr/bin/composer /usr/bin/composer diff --git a/docker/Dockerfile.php b/docker/Dockerfile.php index a62a897..5571371 100644 --- a/docker/Dockerfile.php +++ b/docker/Dockerfile.php @@ -1,8 +1,10 @@ FROM php:8.3-cli-alpine -RUN apk add --no-cache linux-headers=~6.7 git +RUN apk add --no-cache linux-headers git -RUN docker-php-ext-install pcntl sockets +RUN apk add --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/v3.20/main linux-headers \ + && docker-php-ext-install pcntl sockets || \ + docker-php-ext-install pcntl COPY --from=composer:2 /usr/bin/composer /usr/bin/composer