Skip to content

Commit 5dc927a

Browse files
authored
Merge pull request #211 from devinmatte/dockerfile
Slight cleanup and revert to 7.1
2 parents 3ecfb9b + 01f79c2 commit 5dc927a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
FROM php:7.3-apache
2-
MAINTAINER Devin Matte <[email protected]>
1+
FROM php:7.1-apache
2+
LABEL author="Devin Matte <[email protected]>"
33

4-
ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf
4+
COPY apache-config.conf /etc/apache2/sites-enabled/000-default.conf
55

66
RUN a2enmod rewrite && a2enmod headers && a2enmod expires && \
77
sed -i '/Listen/{s/\([0-9]\+\)/8080/; :a;n; ba}' /etc/apache2/ports.conf && \
88
chmod og+rwx /var/lock/apache2 && chmod -R og+rwx /var/run/apache2
99

1010
RUN apt-get -yq update && \
11-
apt-get -yq install gnupg imagemagick libmagickwand-dev --no-install-recommends && \
12-
apt-get -yq clean all
11+
apt-get -yq install gnupg libmagickwand-dev --no-install-recommends
1312

1413
RUN docker-php-ext-install mysqli && \
1514
pecl install imagick && docker-php-ext-enable imagick
@@ -20,7 +19,7 @@ COPY . /var/www/html
2019

2120
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
2221
&& apt-get -yq update \
23-
&& apt-get -yq install nodejs \
22+
&& apt-get -yq install nodejs --no-install-recommends \
2423
&& npm install \
2524
&& npm run-script build \
2625
&& rm -rf node_modules \

0 commit comments

Comments
 (0)