| Current Path : /var/www/clients/client3/web2/web/vendor/elasticsearch/elasticsearch/.ci/ |
| Current File : /var/www/clients/client3/web2/web/vendor/elasticsearch/elasticsearch/.ci/Dockerfile |
ARG PHP_VERSION=7.4-cli
FROM php:${PHP_VERSION}
WORKDIR /usr/src/app
# Install git
RUN apt-get update && \
apt-get install -y --no-install-recommends git
# Install zip extension for PHP
RUN apt-get install -y \
libzip-dev \
zip \
libyaml-dev \
&& docker-php-ext-install zip
# Install yaml extension for PHP
RUN pecl channel-update pecl.php.net
RUN pecl install yaml && docker-php-ext-enable yaml
# Print PHP version
RUN php -v
# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Print composer version
RUN composer --version
COPY composer.json .
# Install dependencies with composer
RUN composer install
COPY . .
# Updating elasticsearch submodule
RUN git submodule update --init --recursive
CMD ["bash", ".ci/yaml-tests.sh"]