php-cli.docker 606 B

123456789101112131415161718
  1. FROM php:7.4-cli
  2. RUN apt-get update && apt-get install -y wget git unzip --fix-missing \
  3. && pecl install xdebug-2.9.5 \
  4. && docker-php-ext-enable xdebug
  5. RUN apt-get install -y libxml2-dev \
  6. && docker-php-ext-install soap
  7. ADD php.ini /usr/local/etc/php/php.ini
  8. ENV COMPOSER_ALLOW_SUPERUSER 1
  9. RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/bin --filename=composer --quiet \
  10. && rm -rf /root/.composer/cache
  11. RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_mysql mysqli
  12. RUN docker-php-ext-enable pdo pdo_mysql mysqli
  13. WORKDIR /app