Skip to content

Commit dbb6b83

Browse files
committed
install phalcon php and dev tools
1 parent 3d787cf commit dbb6b83

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

Dockerfiles/php-fpm/Dockerfile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
FROM php:7.2-fpm
22

33

4-
54
RUN set -xe; \
65
echo "PS1='\u@\h:\w\$ '" >> ~/.bashrc && \
76
echo "" >> ~/.bashrc && \
@@ -37,6 +36,22 @@ RUN set -xe; \
3736
docker-php-ext-enable xdebug
3837

3938

39+
# install phalcon
40+
ARG PHALCON_VERSION=3.4.4
41+
ARG PHALCON_EXT_PATH=php7/64bits
42+
43+
RUN set -xe && \
44+
# Compile Phalcon
45+
curl -LO https://github.com/phalcon/cphalcon/archive/v${PHALCON_VERSION}.tar.gz && \
46+
tar xzf ${PWD}/v${PHALCON_VERSION}.tar.gz && \
47+
docker-php-ext-install -j $(getconf _NPROCESSORS_ONLN) ${PWD}/cphalcon-${PHALCON_VERSION}/build/${PHALCON_EXT_PATH} && \
48+
# Remove all temp files
49+
rm -r \
50+
${PWD}/v${PHALCON_VERSION}.tar.gz \
51+
${PWD}/cphalcon-${PHALCON_VERSION}
52+
53+
54+
4055
# install zip extensions
4156
# ps. next lines are here becase there is no auto build on docker
4257
RUN apt-get install -y --no-install-recommends \
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"require": {
3-
"hirak/prestissimo": "^0.3.5"
3+
"hirak/prestissimo": "^0.3.5",
4+
"phalcon/devtools": "~3.4"
45
}
56
}

0 commit comments

Comments
 (0)