-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (25 loc) · 1.16 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
FROM nyanpass/php5.5:5.5.38-cli
RUN apt-get update \
&& apt-get install librabbitmq-dev git libzip-dev -y
RUN curl -L https://github.com/phalcon/cphalcon/archive/phalcon-v2.0.13.tar.gz -o phalcon.tar.gz \
&& tar -xf phalcon.tar.gz \
&& cd cphalcon*/build && ./install \
&& docker-php-ext-enable phalcon
RUN curl -L https://github.com/alanxz/rabbitmq-c/releases/download/v0.7.1/rabbitmq-c-0.7.1.tar.gz -o rabbitmq-c-0.7.1.tar.gz \
&& tar -xzvf rabbitmq-c-0.7.1.tar.gz \
&& cd rabbitmq-c-0.7.1 \
&& ./configure --prefix=/usr/local/rabbitmq-c-0.7 \
&& make \
&& make install \
&& echo '/usr/local/rabbitmq-c-0.7' | pecl install amqp \
&& docker-php-ext-enable amqp
RUN docker-php-ext-install mysql zip
RUN pecl install redis \
&& docker-php-ext-enable redis
RUN docker-php-ext-install pdo pdo_mysql \
&& echo 'date.timezone = America/New_York' >> /usr/local/etc/php/php.ini
RUN rm -rf rabbitmq-c-0.7.1.tar.gz rabbitmq-c-0.7.1 phalcon.tar.gz cphalcon* \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& apt-get autoclean -y \
&& docker-php-source delete