PHP in a docker container without running rootless, designed for a more secure cloud deployment.
799
PHP in a docker container without running rootless, designed for a more secure cloud deployment.
This image is not actively maintained and shouldn't be used in production builds.
The apache port is configurable via the PORT environment variable. The default
value is 8888
The apache document root is configurable via the APACHE_DOCUMENT_ROOT
environment variable. The default value is /var/www/html
You can define a startup command by setting the STARTUP_COMMAND environment
variable. This can be used to run user defined scripts before apache is
started.
With the below command /var/www/bin/docker-startup.sh in your container must
be set to be executible.
STARTUP_COMMAND="/var/www/bin/docker-startup.sh"
To run a php script you can prefix the script with php.
STARTUP_COMMAND="php /var/www/bin/migrate.php"
PHP extensions can be installed with the phpenv-ext-install script, this
uses the apt package lists from
incubator/phpenv-practically
to manage all of the apt dependencies so you don't have to.
The default installed extensions are: gd intl mysqli pdo_mysql.
The available extensions are:
bcmath bz2 calendar ctype curl dba dom enchant exif ffi fileinfo filter ftp gd gettext gmp hash iconv imap intl json ldap mbstring 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 reflection session shmop simplexml snmp soap sockets sodium spl standard sysvmsg sysvsem sysvshm tidy tokenizer xml xmlreader xmlwriter xsl zend_test zip
Content type
Image
Digest
sha256:429ca25e1…
Size
162.8 MB
Last updated
about 4 years ago
docker pull practically/docker-php:8.0