-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (19 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
23 lines (19 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM php:apache
RUN apt-get update && apt-get install -y git curl
RUN cd /tmp/ \
&& php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php \
&& php -r "if (hash('SHA384', file_get_contents('composer-setup.php')) . PHP_EOL === file_get_contents('https://composer.github.io/installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php \
&& php -r "unlink('composer-setup.php');" \
&& mv composer.phar /usr/bin/composer \
&& export PATH=$PATH.":~/.composer/vendor/bin"
RUN cd /opt/ \
&& git clone --depth=1 https://github.com/phalcon/zephir.git \
&& find zephir -type f -print0 | xargs -0 sed -i 's/sudo //g' \
&& cd /opt/zephir \
&& ./install -c
RUN git clone --branch 2.1.x --depth=1 https://github.com/phalcon/cphalcon.git /opt/cphalcon \
&& cd /opt/cphalcon \
&& zephir fullclean \
&& zephir build —backend=ZendEngine3 \
&& echo "extension=phalcon.so" >> /usr/local/etc/php/conf.d/40-phalcon.ini