Skip to content

Commit f7fc736

Browse files
authored
Merge pull request #19 from fontebasso/php8
Fix dependencies
2 parents 4be1e88 + 95f053c commit f7fc736

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ RUN set -ex; \
3838
oniguruma-dev \
3939
postgresql-dev \
4040
runit; \
41-
apk add --no-cache --virtual build-dependencies build-base gcc wget autoconf; \
41+
apk add --no-cache --virtual build-dependencies build-base gcc wget autoconf linux-headers; \
4242
docker-php-ext-install \
4343
bcmath \
4444
bz2 \
@@ -55,8 +55,11 @@ RUN set -ex; \
5555
zip; \
5656
pecl install imagick; \
5757
docker-php-ext-enable --ini-name docker-php-ext-x-01-imagick.ini imagick; \
58+
echo "#include <unistd.h>" > /usr/include/sys/unistd.h; \
5859
pecl install grpc; \
59-
docker-php-ext-enable --ini-name docker-php-ext-x-05-grpc.ini grpc; \
60+
docker-php-ext-enable --ini-name docker-php-ext-x-05-grpc.ini grpc; \
61+
pecl install protobuf; \
62+
docker-php-ext-enable --ini-name docker-php-ext-x-06-protobuf.ini protobuf; \
6063
ln -sf /dev/stdout /var/log/nginx/access.log; \
6164
ln -sf /dev/stderr /var/log/nginx/error.log; \
6265
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini";

0 commit comments

Comments
 (0)