add composer

This commit is contained in:
Christopher 2020-06-16 09:36:09 +00:00
parent a07597d24d
commit 314e52a38e
1 changed files with 3 additions and 1 deletions

View File

@ -2,12 +2,14 @@ FROM debian:buster
MAINTAINER Christopher <christopher@chris-latza.de>
RUN apt-get update && apt-get install -y --fix-missing nano apache2 php php-cli php-ldap php-mysql php-imap php-xml php-mbstring php-intl php-apcu php-gd php-sqlite3 wget curl ffmpeg && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y --fix-missing nano apache2 php php-cli php-ldap php-mysql php-imap php-xml php-mbstring php-intl php-apcu php-gd php-sqlite3 wget curl ffmpeg unzip git && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
RUN a2enmod rewrite
RUN a2enmod remoteip
RUN rm -r -f /var/www/html/*
RUN chown -R www-data:www-data /var/www/html
RUN curl -sS https://getcomposer.org/installer -o composer-setup.php && php composer-setup.php --install-dir=/usr/local/bin --filename=composer
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data