Skip to content

Commit

Permalink
php8
Browse files Browse the repository at this point in the history
  • Loading branch information
twbworld committed Feb 22, 2024
1 parent d1200e6 commit 439d46c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ LABEL org.opencontainers.image.vendor="忐忑" \

#ARG SWOOLE_VERSION=4.5.2
#ARG REDIS_VERSION=5.3.1
ARG PHALCON_VERSION=4.1.2 \
PSR_VERSION=1.0.0 \
PHALCON_EXT_PATH=php8/64bits
ARG PSR_VERSION=1.0.0

COPY php.ini /usr/local/etc/php/
COPY www.conf /usr/local/etc/php-fpm.d/
Expand All @@ -28,9 +26,7 @@ RUN set -xe \
tzdata \
# Download PSR, see https://github.com/jbboehr/php-psr
&& curl -L -O https://github.com/jbboehr/php-psr/archive/v${PSR_VERSION}.tar.gz \
-O https://github.com/phalcon/cphalcon/archive/v${PHALCON_VERSION}.tar.gz \
&& tar -zxvf ${PWD}/v${PSR_VERSION}.tar.gz \
&& tar -zxvf ${PWD}/v${PHALCON_VERSION}.tar.gz \
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \
&& docker-php-ext-install -j$(nproc) \
gd \
Expand All @@ -49,7 +45,6 @@ RUN set -xe \
sysvshm \
zip \
${PWD}/php-psr-${PSR_VERSION} \
${PWD}/cphalcon-${PHALCON_VERSION}/build/${PHALCON_EXT_PATH} \
&& pecl install -o -f \
# swoole \
redis \
Expand All @@ -65,7 +60,6 @@ RUN set -xe \
&& rm -rf \
${PWD}/*.tar.gz \
${PWD}/php-psr-${PSR_VERSION} \
${PWD}/cphalcon-${PHALCON_VERSION} \
/var/lib/apt/lists/* \
&& php -m

Expand Down

0 comments on commit 439d46c

Please sign in to comment.