Skip to content

Commit

Permalink
Merge pull request typecho#54 from lufei/fix/gd
Browse files Browse the repository at this point in the history
  • Loading branch information
joyqi authored Jan 10, 2025
2 parents 88ba0ee + d9e61f3 commit 24ff534
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN sed -i "s/<shell>/$(use bash sh)/g" /bin/init_typecho \
--with-freetype${CONFIG} \
--with-jpeg${CONFIG} \
--with-webp${CONFIG} \
&& docker-php-ext-install -j "$(nproc)" gd \
&& CFLAGS="$CFLAGS ${PHP8_SOCKETS_WORKAROUND}" docker-php-ext-install -j "$(nproc)" \
sockets \
&& docker-php-ext-install -j "$(nproc)" ${PHP_EXTENSION} \
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ PUSH=""
CONFIG="-dir=/usr/include/"
BUILDX="build"
PHP8_SOCKETS_WORKAROUND=""
PHP_EXTENSION="bcmath exif gd zip mysqli pdo_mysql pdo_pgsql tokenizer opcache"
PHP_EXTENSION="bcmath exif zip mysqli pdo_mysql pdo_pgsql tokenizer opcache"

cat Dockerfile.base > Dockerfile

Expand Down Expand Up @@ -85,7 +85,7 @@ fi

# disable tokenzier extension for php 8.1
if [[ ${php} == "8.1" || ${php} == "8.2" ]]; then
PHP_EXTENSION="bcmath exif gd zip mysqli pdo_mysql pdo_pgsql opcache"
PHP_EXTENSION="bcmath exif zip mysqli pdo_mysql pdo_pgsql opcache"
fi

TAG="${LEFT}${MIDDLE}${RIGHT}"
Expand Down

0 comments on commit 24ff534

Please sign in to comment.