added composer/git/zip

This commit is contained in:
root 2021-08-29 11:50:22 +02:00
parent 95612607da
commit dfe13b41da

View File

@ -3,7 +3,7 @@ FROM php:7-apache
ENV DEBIAN_FRONTEND noninterative
# Tools
RUN apt-get update && apt-get install -y libxml2-utils
RUN apt-get update && apt-get install -y libxml2-utils git
# Apache Modules
RUN a2enmod rewrite dav dav_fs dav_lock headers
@ -19,8 +19,14 @@ RUN docker-php-ext-configure opcache && docker-php-ext-install -j$(nproc) opcach
## pgsql
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-configure pgsql && docker-php-ext-install pgsql
## zip
RUN apt-get update && apt-get install -y libzip-dev && docker-php-ext-configure zip && docker-php-ext-install zip
# composer
RUN curl https://getcomposer.org/installer --output /tmp/composer-setup.php && php /tmp/composer-setup.php --install-dir=/tmp && mv /tmp/composer.phar /usr/local/bin/composer
# cleanup
RUN rm -rf /var/lib/apt/lists/*
RUN rm -rf /var/lib/apt/lists/* /tmp/composer-setup.php
# PHP ini
RUN cp "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"