-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.4 upgrade #109
Merged
Merged
8.4 upgrade #109
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
FROM php:8.4.1-fpm-alpine3.20 | ||
|
||
MAINTAINER Jitendra Adhikari <[email protected]> | ||
|
||
ENV \ | ||
LD_PRELOAD=/usr/lib/preloadable_libiconv.so \ | ||
PECL_EXTENSIONS="apcu ast ds ev igbinary lzf memcached mongodb msgpack oauth pcov \ | ||
psr redis rdkafka simdjson ssh2-1.3.1 uuid xdebug xhprof xlswriter yaml" \ | ||
PHP_EXTENSIONS="bcmath bz2 calendar exif gd gettext gmp imap intl ldap mysqli pcntl pdo_mysql pgsql \ | ||
pdo_pgsql pspell shmop soap sysvshm sysvmsg sysvsem tidy xsl zip" \ | ||
PECL_EXTENSIONS_FUTURE="grpc imagick yaf" \ | ||
PHP_EXTENSIONS_FUTURE="intl sockets" | ||
|
||
# docker-* | ||
COPY docker-* /usr/local/bin/ | ||
|
||
# copy from existing | ||
COPY --from=adhocore/phpfpm:8.4 /usr/local/lib/php/extensions/no-debug-non-zts-20230831/*.so /usr/local/lib/php/extensions/no-debug-non-zts-20230831/ | ||
COPY --from=adhocore/phpfpm:8.4 /usr/local/etc/php/conf.d/*.ini /usr/local/etc/php/conf.d/ | ||
|
||
# ext | ||
COPY ext.php /ext.php | ||
|
||
RUN \ | ||
# deps | ||
apk add -U --no-cache --virtual temp \ | ||
# dev deps | ||
autoconf g++ file re2c make zlib-dev libtool aspell-dev pcre-dev libxml2-dev bzip2-dev libzip-dev \ | ||
icu-dev gettext-dev imagemagick-dev openldap-dev libpng-dev gmp-dev yaml-dev postgresql-dev \ | ||
libxml2-dev tidyhtml-dev libmemcached-dev libssh2-dev libevent-dev libev-dev librdkafka-dev lua-dev libxslt-dev \ | ||
freetype-dev jpeg-dev libjpeg-turbo-dev oniguruma-dev \ | ||
# prod deps | ||
&& apk add --no-cache aspell gettext gnu-libiconv grpc \ | ||
icu imagemagick libjpeg imap-dev libzip libbz2 librdkafka libxml2-utils libpq \ | ||
libmemcached libssh2 libevent libev libxslt linux-headers lua openldap \ | ||
openldap-back-mdb tidyhtml yaml zlib \ | ||
# | ||
# php extensions | ||
&& docker-php-source extract \ | ||
&& docker-php-ext-remove intl || true \ | ||
&& pecl channel-update pecl.php.net \ | ||
&& { php -m | grep gd || docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd; } \ | ||
&& docker-php-ext-install-if $PHP_EXTENSIONS \ | ||
&& docker-pecl-ext-install $PECL_EXTENSIONS \ | ||
&& { docker-php-ext-enable $(echo $PECL_EXTENSIONS | sed -E 's/\-[^ ]+//g') opcache > /dev/null || true; } \ | ||
&& { php -m | grep xdebug && docker-php-ext-disable xdebug || true; } \ | ||
&& docker-php-source delete \ | ||
# | ||
# composer | ||
&& curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ | ||
&& curl -sSL https://getcomposer.org/installer | php -- --1 --install-dir=/usr/local/bin --filename=composer1 \ | ||
# | ||
# cleanup | ||
&& apk del temp \ | ||
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/* /usr/share/doc/* /usr/share/man/* \ | ||
&& php -f /ext.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
initially we should not copy but only after first build
for now the COPY can be commented out like
# COPY
in this and next line