28
30

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Dockerfileに書けるPHP Extensionsメモ

Posted at

Dockerfileを使ってPHPのイメージをbuildする際、

Dockerfile
RUN docker-php-ext-install pdo

などとすれば、PHPのExtensionsが導入出来ます。

さてじゃあここで追加出来るExtensionsって何ぞや、と思っていたら、
Dockerfileのビルドエラー時に一覧が出てきたので、備忘録的に記録。

Possible values for ext-name:
bcmath bz2 calendar ctype curl dba dom enchant exif fileinfo filter ftp gd gettext gmp hash iconv imap interbase intl json ldap mbstring mcrypt mysqli oci8 odbc opcache pcntl pdo pdo_dblib pdo_firebird pdo_mysql pdo_oci pdo_odbc pdo_pgsql pdo_sqlite pgsql phar posix pspell readline recode reflection session shmop simplexml snmp soap sockets spl standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zip

PECL Extensions系(memcachedやredis、xdebugなど)はここには含まれないみたいなので、
DockerHubの公式PHPイメージのページの通りに、別途記載が必要なようです。

28
30
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
28
30

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?