-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
45 lines (32 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM php:5.6-apache
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libmcrypt-dev \
mysql-client \
libicu-dev \
git \
nano
RUN docker-php-ext-install iconv mcrypt && \
docker-php-ext-install pdo_mysql && \
docker-php-ext-install -j$(nproc) gd && \
docker-php-ext-install mbstring && \
docker-php-ext-install gettext && \
docker-php-ext-install exif && \
docker-php-ext-install intl && \
docker-php-ext-install zip && \
docker-php-ext-install opcache
RUN a2enmod rewrite && \
a2enmod headers && \
a2enmod expires && \
a2enmod ssl
ADD . /var/www/html/
ADD docker/entrypoint.sh /entrypoint.sh
RUN chmod 755 /entrypoint.sh
ADD docker/apache/000-default.conf /etc/apache2/sites-enabled/000-default.conf
ADD docker/apache/mod-pagespeed-stable_current_amd64.deb docker/apache/mod-pagespeed-stable_current_amd64.deb
RUN dpkg -i docker/apache/mod-pagespeed-stable_current_amd64.deb
ADD . /var/www/html/
ADD docker/php/php-prod.ini /usr/local/etc/php/php.ini
ADD docker/apache/pagespeed.conf /etc/apache2/mods-enabled/pagespeed.conf
EXPOSE 80 443
CMD ["/entrypoint.sh"]