File "Dockerfile"

Full Path: /home/warrior1/public_html/wp-content/plugins/google-listings-and-ads/vendor/googleads/google-ads-php/Dockerfile
File size: 899 bytes
MIME-type: text/plain
Charset: utf-8

# Sets the PHP image to extend from.
# See https://hub.docker.com/_/php.
ARG PHP_IMAGE="apache"
FROM php:${PHP_IMAGE}

ARG USE_C_PROTOBUF=true

RUN apt-get update && apt-get install -y libxml2 zlib1g-dev git unzip

# Install PHP extension(s) required for development.
RUN docker-php-ext-install bcmath

# Install and configure Composer.
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer

# Install and configure the gRPC extension.
RUN pecl install grpc
RUN echo 'extension=grpc.so' >> $PHP_INI_DIR/conf.d/grpc.ini

# Install and configure the C implementation of Protobuf extension if needed.
RUN if [ "$USE_C_PROTOBUF" = "false" ]; then echo 'Using PHP implementation of Protobuf'; else echo 'Using C implementation of Protobuf'; pecl install protobuf; echo 'extension=protobuf.so' >> $PHP_INI_DIR/conf.d/protobuf.ini; fi

WORKDIR "/google-ads-php"