Skip to content

Commit

Permalink
refactor: build few extensions under /opt dir
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluisq committed Jan 3, 2024
1 parent 8cd6cd1 commit 8c38e7b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions 8.1-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ RUN set -eux \
&& true \
\
# Install lz4
&& git clone https://github.com/kjdev/php-ext-lz4 /tmp/lz4 \
&& cd /tmp/lz4 \
&& git clone https://github.com/kjdev/php-ext-lz4 /opt/lz4 \
&& cd /opt/lz4 \
&& git checkout $(git tag | grep -E '^[.0-9]+$' | sort -V | tail -1) \
&& phpize \
&& ./configure --enable-lz4 --with-lz4-includedir=/usr \
Expand Down Expand Up @@ -226,8 +226,8 @@ RUN set -eux \
&& true \
\
# Install phalcon
&& git clone --depth=1 --branch=v${PHALCON_VERSION} https://github.com/phalcon/cphalcon.git /tmp/phalcon \
&& cd /tmp/phalcon/build \
&& git clone --depth=1 --branch=v${PHALCON_VERSION} https://github.com/phalcon/cphalcon.git /opt/phalcon \
&& cd /opt/phalcon/build \
&& sh ./install \
&& docker-php-ext-enable phalcon \
&& true \
Expand Down Expand Up @@ -345,6 +345,7 @@ RUN set -eux \
# Clean up build packages
&& docker-php-source delete \
&& apk del .build-deps \
&& rm -rf /tmp/* \
&& true

RUN set -eux \
Expand Down
9 changes: 5 additions & 4 deletions 8.2-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ RUN set -eux \
&& true \
\
# Install lz4
&& git clone https://github.com/kjdev/php-ext-lz4 /tmp/lz4 \
&& cd /tmp/lz4 \
&& git clone https://github.com/kjdev/php-ext-lz4 /opt/lz4 \
&& cd /opt/lz4 \
&& git checkout $(git tag | grep -E '^[.0-9]+$' | sort -V | tail -1) \
&& phpize \
&& ./configure --enable-lz4 --with-lz4-includedir=/usr \
Expand Down Expand Up @@ -220,8 +220,8 @@ RUN set -eux \
&& true \
\
# Install phalcon
&& git clone --depth=1 --branch=v${PHALCON_VERSION} https://github.com/phalcon/cphalcon.git /tmp/phalcon \
&& cd /tmp/phalcon/build \
&& git clone --depth=1 --branch=v${PHALCON_VERSION} https://github.com/phalcon/cphalcon.git /opt/phalcon \
&& cd /opt/phalcon/build \
&& sh ./install \
&& docker-php-ext-enable phalcon \
&& true \
Expand Down Expand Up @@ -339,6 +339,7 @@ RUN set -eux \
# Clean up build packages
&& docker-php-source delete \
&& apk del .build-deps \
&& rm -rf /tmp/* \
&& true

RUN set -eux \
Expand Down

0 comments on commit 8c38e7b

Please sign in to comment.