FROM php:5.5.35-apache ENV PYTHONUNBUFFERED 1 RUN apt-get update && apt-get install -y python-mysqldb git subversion zip COPY . /code WORKDIR /code RUN mkdir -p bin RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" RUN php -r "if (hash_file('SHA384', 'composer-setup.php') === '92102166af5abdb03f49ce52a40591073a7b859a86e8ff13338cf7db58a19f7844fbc0bb79b2773bf30791e935dbd938') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" RUN php composer-setup.php --install-dir=bin --filename=composer RUN php -r "unlink('composer-setup.php');" RUN mv bin/composer /usr/local/bin/composer RUN composer install COPY ./apache.korp.conf /etc/apache2/apache2.conf RUN adduser www-data staff RUN usermod -u 1000 www-data RUN chown www-data:www-data -R /code/ EXPOSE 8080