Skip to content

Instantly share code, notes, and snippets.

@hoandang
Created May 20, 2017 01:12
Show Gist options
  • Save hoandang/88bfb1e30805df6d1539640fc1719d12 to your computer and use it in GitHub Desktop.
Save hoandang/88bfb1e30805df6d1539640fc1719d12 to your computer and use it in GitHub Desktop.
Complete list of php docker ext
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
RUN docker-php-ext-install -j$(nproc) gd
RUN apt install -y php-apc
RUN apt install -y libxml2-dev
RUN apt install -y libldb-dev
RUN apt install -y libldap2-dev
RUN apt install -y libxml2-dev
RUN apt install -y libssl-dev
RUN apt install -y libxslt-dev
RUN apt install -y libpq-dev
RUN apt install -y postgresql-client
RUN apt install -y mysql-client
RUN apt install -y libsqlite3-dev
RUN apt install -y libsqlite3-0
RUN apt install -y libc-client-dev
RUN apt install -y libkrb5-dev
RUN apt install -y curl
RUN apt install -y libcurl3
RUN apt install -y libcurl3-dev
RUN apt install -y firebird-dev
RUN apt-get install -y libpspell-dev
RUN apt-get install -y aspell-en
RUN apt-get install -y aspell-de
RUN apt install -y libtidy-dev
RUN apt install -y libsnmp-dev
RUN apt install -y librecode0
RUN apt install -y librecode-dev
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer
#RUN pecl install apc
RUN docker-php-ext-install opcache
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
RUN docker-php-ext-install soap
RUN docker-php-ext-install ftp
RUN docker-php-ext-install xsl
RUN docker-php-ext-install bcmath
RUN docker-php-ext-install calendar
RUN docker-php-ext-install ctype
RUN docker-php-ext-install dba
RUN docker-php-ext-install dom
RUN docker-php-ext-install zip
RUN docker-php-ext-install session
RUN docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu
RUN docker-php-ext-install ldap
RUN docker-php-ext-install json
RUN docker-php-ext-install hash
RUN docker-php-ext-install sockets
RUN docker-php-ext-install pdo
RUN docker-php-ext-install mbstring
RUN docker-php-ext-install tokenizer
RUN docker-php-ext-install pgsql
RUN docker-php-ext-install pdo_pgsql
RUN docker-php-ext-install pdo_mysql
RUN docker-php-ext-install pdo_sqlite
RUN docker-php-ext-install intl
RUN docker-php-ext-install mcrypt
RUN docker-php-ext-install mysqli
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl
RUN docker-php-ext-install imap
RUN docker-php-ext-install gd
RUN docker-php-ext-install curl
RUN docker-php-ext-install exif
RUN docker-php-ext-install fileinfo
RUN docker-php-ext-install gettext
#RUN apt install -y libgmp-dev # idk
#RUN docker-php-ext-install gmp # idk
RUN docker-php-ext-install iconv
RUN docker-php-ext-install interbase
RUN docker-php-ext-install pdo_firebird
RUN docker-php-ext-install opcache
#RUN docker-php-ext-install oci8 # idk
#RUN docker-php-ext-install odbc # idk
RUN docker-php-ext-install pcntl
#RUN apt install -y freetds-dev # idk
#RUN docker-php-ext-install pdo_dblib # idk
#RUN docker-php-ext-install pdo_oci # idk
#RUN docker-php-ext-install pdo_odbc # idk
RUN docker-php-ext-install phar
RUN docker-php-ext-install posix
RUN docker-php-ext-install pspell
#RUN apt install -y libreadline-dev # idk
#RUN docker-php-ext-install readline # idk
RUN docker-php-ext-install recode
RUN docker-php-ext-install shmop
RUN docker-php-ext-install simplexml
RUN docker-php-ext-install snmp
RUN docker-php-ext-install sysvmsg
RUN docker-php-ext-install sysvsem
RUN docker-php-ext-install sysvshm
RUN docker-php-ext-install tidy
RUN docker-php-ext-install wddx
RUN docker-php-ext-install xml
#RUN apt install -y libxml2-dev # idk
#RUN docker-php-ext-install xmlreader # idk
RUN docker-php-ext-install xmlrpc
RUN docker-php-ext-install xmlwriter
# idk bz2 enchant
@howmarketing
Copy link

Essa lista foi um belo agrado!

@vz-spr
Copy link

vz-spr commented Oct 16, 2021

Thank you!

@victorga10
Copy link

RUN apt-get install -y libenchant-2-dev

@angryhans
Copy link

Good job!

Copy link

ghost commented May 10, 2022

tks!

@elrukn
Copy link

elrukn commented Jun 15, 2022

Thank you for this !

@atlasmercan
Copy link

thanks bro ...

@luislar
Copy link

luislar commented Jul 8, 2022

Muy buena info, Gracias, Saludo desde Argentina

@felipepessoa
Copy link

Thank you very helpful! 😃

@ramaureirac
Copy link

brutal

@guillaumebdx
Copy link

cool

@caoduc18
Copy link

awesome, thankyou!
gid:QwbgNdivBsp93SiFXRuFz7

@landersonalmeida
Copy link

Thanks!!!!

@aploe
Copy link

aploe commented Sep 9, 2022

Thank you so much! Helped me a lot.

@byndstd
Copy link

byndstd commented Sep 28, 2022

Thank you so much! Helped me a lot. 👍 🥇

@defro
Copy link

defro commented Nov 19, 2022

Merci

@todsaporn
Copy link

Thanks !!!!

@ranafaraz
Copy link

Helpful resource.

@inikishev
Copy link

congratulations for you have managed to become the owner of the most starred gist that contains the word "idk"!

@nesmaster
Copy link

Estupefacto!

@cesarLDsousa
Copy link

omg please send this guy to heaven! thank u ! ! ! ! ! !

@f2h1234
Copy link

f2h1234 commented Nov 21, 2024

Great.

Download and install ioncube loader

RUN curl -sSL "http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz" -o ioncube.tar.gz
&& tar -xzf ioncube.tar.gz
&& mv ioncube/ioncube_loader_lin_8.1.so $(php-config --extension-dir)
&& rm -rf ioncube.tar.gz ioncube
&& docker-php-ext-enable ioncube_loader_lin_8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment