|  | 
| 1 | 1 | FROM php:7.1-apache | 
| 2 |  | -MAINTAINER Devin Matte <[email protected] > | 
|  | 2 | +LABEL author="Devin Matte <[email protected]>" | 
| 3 | 3 | 
 | 
| 4 |  | -ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf | 
|  | 4 | +RUN apt-get -yq update && \ | 
|  | 5 | +    apt-get -yq install gnupg libmagickwand-dev git gcc make autoconf libc-dev pkg-config --no-install-recommends | 
|  | 6 | + | 
|  | 7 | +RUN docker-php-ext-install mysqli && \ | 
|  | 8 | +    yes '' | pecl install imagick && docker-php-ext-enable imagick | 
|  | 9 | + | 
|  | 10 | +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | 
|  | 11 | + | 
|  | 12 | +COPY apache-config.conf /etc/apache2/sites-enabled/000-default.conf | 
| 5 | 13 | 
 | 
| 6 | 14 | RUN a2enmod rewrite && a2enmod headers && a2enmod expires && \ | 
| 7 | 15 |     sed -i '/Listen/{s/\([0-9]\+\)/8080/; :a;n; ba}' /etc/apache2/ports.conf && \ | 
| 8 | 16 |     chmod og+rwx /var/lock/apache2 && chmod -R og+rwx /var/run/apache2 | 
| 9 | 17 | 
 | 
| 10 |  | -RUN apt-get -yq update && \ | 
| 11 |  | -    apt-get -yq install gnupg libmagickwand-dev --no-install-recommends && \ | 
| 12 |  | -    apt-get -yq clean all | 
| 13 |  | - | 
| 14 |  | -RUN docker-php-ext-install mysqli && \ | 
| 15 |  | -    pecl install imagick && docker-php-ext-enable imagick | 
| 16 |  | - | 
| 17 | 18 | COPY . /var/www/html | 
| 18 | 19 | 
 | 
| 19 |  | -RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - && \ | 
| 20 |  | -    apt-get -yq update && \ | 
| 21 |  | -    apt-get -yq install nodejs && \ | 
| 22 |  | -    npm install && \ | 
| 23 |  | -    npm run-script build && \ | 
| 24 |  | -    rm -rf node_modules && \ | 
| 25 |  | -    apt-get -yq remove nodejs && \ | 
| 26 |  | -    apt-get -yq clean all | 
|  | 20 | +RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \ | 
|  | 21 | +    && apt-get -yq update \ | 
|  | 22 | +    && apt-get -yq install nodejs --no-install-recommends \ | 
|  | 23 | +    && npm install \ | 
|  | 24 | +    && npm run-script build \ | 
|  | 25 | +    && apt-get -yq remove nodejs \ | 
|  | 26 | +    && apt-get -yq clean all \ | 
|  | 27 | +    && rm -rf node_modules | 
|  | 28 | + | 
|  | 29 | +RUN composer install | 
| 27 | 30 | 
 | 
| 28 | 31 | EXPOSE 8080 | 
| 29 | 32 | EXPOSE 8443 | 
0 commit comments