Skip to content

Commit

Permalink
use phalcon-pecl.tgz
Browse files Browse the repository at this point in the history
  • Loading branch information
fizzka committed Oct 4, 2023
1 parent 00dd674 commit 49a6bca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@ RUN set -xe && \
docker-php-source extract && \
# Install ext-phalcon
cd /tmp && \
curl -LO https://github.com/phalcon/cphalcon/archive/v${PHALCON_VERSION}.tar.gz && \
tar xzf v${PHALCON_VERSION}.tar.gz && \
curl -LO https://github.com/phalcon/cphalcon/releases/download/v${PHALCON_VERSION}/phalcon-pecl.tgz && \
tar xzf phalcon-pecl.tgz && \
docker-php-ext-install -j $(getconf _NPROCESSORS_ONLN) \
/tmp/cphalcon-${PHALCON_VERSION}/build/phalcon \
/tmp/phalcon-${PHALCON_VERSION} \
&& \
# Remove all temp files
rm -r \
/tmp/v${PHALCON_VERSION}.tar.gz \
/tmp/cphalcon-${PHALCON_VERSION} \
&& \
rm -r /tmp/phalcon-* && \
docker-php-source delete && \
php -m

Expand Down
11 changes: 4 additions & 7 deletions Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@ RUN set -xe && \
docker-php-source extract && \
# Install ext-phalcon
cd /tmp && \
curl -LO https://github.com/phalcon/cphalcon/archive/v${PHALCON_VERSION}.tar.gz && \
tar xzf /tmp/v${PHALCON_VERSION}.tar.gz && \
curl -LO https://github.com/phalcon/cphalcon/releases/download/v${PHALCON_VERSION}/phalcon-pecl.tgz && \
tar xzf phalcon-pecl.tgz && \
docker-php-ext-install -j $(getconf _NPROCESSORS_ONLN) \
/tmp/cphalcon-${PHALCON_VERSION}/build/phalcon \
/tmp/phalcon-${PHALCON_VERSION} \
&& \
# Remove all temp files
rm -r \
/tmp/v${PHALCON_VERSION}.tar.gz \
/tmp/cphalcon-${PHALCON_VERSION} \
&& \
rm -r /tmp/phalcon-* && \
docker-php-source delete && \
apk del .build-deps && \
php -m
Expand Down

0 comments on commit 49a6bca

Please sign in to comment.