Skip to content

Commit 6a05397

Browse files
committed
Updating Dockerfile dependencies and order
1 parent efd867d commit 6a05397

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Dockerfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
FROM php:7.1-apache
22
LABEL author="Devin Matte <[email protected]>"
33

4-
COPY apache-config.conf /etc/apache2/sites-enabled/000-default.conf
5-
6-
RUN a2enmod rewrite && a2enmod headers && a2enmod expires && \
7-
sed -i '/Listen/{s/\([0-9]\+\)/8080/; :a;n; ba}' /etc/apache2/ports.conf && \
8-
chmod og+rwx /var/lock/apache2 && chmod -R og+rwx /var/run/apache2
9-
104
RUN apt-get -yq update && \
11-
apt-get -yq install gnupg libmagickwand-dev --no-install-recommends
5+
apt-get -yq install gnupg libmagickwand-dev git gcc make autoconf libc-dev pkg-config --no-install-recommends
126

137
RUN docker-php-ext-install mysqli && \
14-
pecl install imagick && docker-php-ext-enable imagick
8+
yes '' | pecl install imagick && docker-php-ext-enable imagick
159

1610
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
1711

12+
COPY apache-config.conf /etc/apache2/sites-enabled/000-default.conf
13+
14+
RUN a2enmod rewrite && a2enmod headers && a2enmod expires && \
15+
sed -i '/Listen/{s/\([0-9]\+\)/8080/; :a;n; ba}' /etc/apache2/ports.conf && \
16+
chmod og+rwx /var/lock/apache2 && chmod -R og+rwx /var/run/apache2
17+
1818
COPY . /var/www/html
1919

2020
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
2121
&& apt-get -yq update \
2222
&& apt-get -yq install nodejs --no-install-recommends \
2323
&& npm install \
2424
&& npm run-script build \
25-
&& rm -rf node_modules \
2625
&& apt-get -yq remove nodejs \
27-
&& apt-get -yq clean all
26+
&& apt-get -yq clean all \
27+
&& rm -rf node_modules
2828

2929
RUN composer install
3030

0 commit comments

Comments
 (0)