-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (24 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
28 lines (24 loc) · 1.12 KB
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
FROM php:7.1.6-fpm
RUN apt-get update && \
apt-get install -y git wget libssl-dev zlib1g-dev libicu-dev g++ make cmake libuv-dev libgmp-dev uuid-dev && \
apt-get autoclean -y && \
apt-get clean -y
# Install datastax php-driver fox cassandra
RUN git clone https://github.com/datastax/php-driver.git /usr/src/datastax-php-driver && \
cd /usr/src/datastax-php-driver && \
git checkout --detach v1.2.2 && \
git submodule update --init && \
cd ext && \
./install.sh && \
echo extension=cassandra.so > /usr/local/etc/php/conf.d/cassandra.ini
# Install PHP extensions
RUN docker-php-ext-install zip mbstring intl opcache bcmath && \
echo extension=bcmath.so > /usr/local/etc/php/conf.d/docker-php-ext-bcmath.ini && \
pecl install xdebug && \
echo zend_extension=xdebug.so > /usr/local/etc/php/conf.d/xdebug.ini && \
pecl install apcu-5.1.5 && \
echo extension=apcu.so > /usr/local/etc/php/conf.d/apcu.ini && \
pecl install uuid && \
echo extension=uuid.so > /usr/local/etc/php/conf.d/uuid.ini
RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/bin/composer