FROM php:5.6-apache MAINTAINER Michael Reber # Install packages RUN apt-get update && apt-get install -y \ libbz2-dev \ libfreetype6-dev \ libgd-dev \ libjpeg62-turbo-dev \ libmcrypt-dev \ libpng12-dev \ libxml2-dev \ zlib1g-dev \ git \ && docker-php-ext-install iconv mbstring mcrypt soap sockets zip \ && docker-php-ext-configure gd --enable-gd-native-ttf --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ && docker-php-ext-install gd \ && a2enmod rewrite headers VOLUME /var/www/html # Entrypoint file which download the GitProject: COPY ./files/gitclone.sh /scripts/gitclone.sh RUN chmod -R 755 /scripts # Copy pre-modifiey settings.ini.php for blgusenetcompose: COPY ./files/settings.ini.php /scripts/settings.ini.php EXPOSE 80 ENTRYPOINT /scripts/gitclone.sh && /usr/sbin/apache2ctl -D FOREGROUND