-
Notifications
You must be signed in to change notification settings - Fork 39
/
Dockerfile
30 lines (28 loc) · 879 Bytes
/
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
FROM php:5-apache
##############################################################################
### Install PHP extensions from PEAR/PECL:
### - MongoDB driver
###
### build-essential: needed for PECL to compile
### php5-dev: needed to provide 'phpize' command
##############################################################################
RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get -y install \
build-essential \
php5-dev \
&& \
pecl channel-update pecl.php.net && \
pecl install mongo && \
rm -vrf /build /tmp/pear && \
echo "extension=mongo.so" > /usr/local/etc/php/conf.d/mongo.ini && \
DEBIAN_FRONTEND=noninteractive \
apt-get -y autoremove --purge \
build-essential \
php5-dev \
&& \
apt-get autoclean && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/log/apt/*
ADD . /var/www/html/