Dockerfile 1.3 KB

1234567891011121314151617181920212223
  1. FROM php:7.4-cli
  2. RUN apt-get update && apt-get install --yes --no-install-recommends git wget
  3. #RUN apt-get update && apt-get install --yes --no-install-recommends libzip-dev libbz2-dev liblzma-dev p7zip-full git wget
  4. #RUN pecl install xdebug-3.1.5
  5. #RUN docker-php-source extract \
  6. # && git clone https://github.com/cataphract/php-rar.git && cd php-rar && phpize && ./configure \
  7. # && make && make install && cd ../ && rm -rf php-rar \
  8. # && git clone https://github.com/codemasher/php-ext-xz.git && cd php-ext-xz && phpize && ./configure \
  9. # && make && make install && cd ../ && rm -rf php-ext-xz \
  10. # && docker-php-source delete
  11. #RUN docker-php-ext-install bz2 zip && docker-php-ext-enable rar xz xdebug
  12. #
  13. #RUN echo "xdebug.mode = debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
  14. RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
  15. RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
  16. dpkg-reconfigure --frontend=noninteractive locales && \
  17. update-locale LANG=en_US.UTF-8
  18. ENV LANG en_US.UTF-8
  19. RUN wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer -O - -q | php -- --quiet --install-dir=/usr/local/bin --filename=composer