当在Dockerfile中作为docker的一部分从PECL包管理器安装opencensus-alpha
时,会抛出一个错误/bin/sh: pecl: not found
Dockerfile
FROM nginx:1.17.4-alpine
RUN apk --no-cache add php7 php7-fpm php7-mysqli php7-pdo_mysql php7-json php7-openssl php7-curl \
php7-zlib php7-xml php7-simplexml php7-phar php7-intl php7-dom php7-xmlreader php7-xmlwriter php7-ctype php7-session \
php7-mbstring php7-gd php-zip supervisor libxml2-dev php7-tokenizer
RUN pecl install opencensus-alpha
有没有一种简单的方法可以在docker容器中安装和启用opencensus-alpha
RUN apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS
。 - Zathrus Writer