FROM php:7-fpm as php-fpm RUN apt update && \ apt install -y zip unzip git && \ docker-php-ext-install mysqli pdo pdo_mysql RUN git clone https://github.com/ad1217/arkhamdb /srv RUN chown -R www-data: /srv COPY parameters.yml /srv/app/config/parameters.yml COPY --from=composer:1 /usr/bin/composer /usr/bin/composer RUN cd /srv/ && composer install FROM nginx as nginx COPY --from=php-fpm /srv /srv