![]() ![]() $ docker run -it -rm -name my-running-app my-php-app Run a single PHP scriptįor many simple, single file projects, you may find it inconvenient to write a complete Dockerfile. Then, run the commands to build and run the Docker image: $ docker build -t my-php-app. How to use this image Create a Dockerfile in your PHP project FROM php:7.4-cli PHP code is usually processed by an interpreter, which is either implemented as a native module on the web-server or as a common gateway interface (CGI). PHP can be added to straight HTML or it can be used with a variety of templating engines and web frameworks. PHP is a server-side scripting language designed for web development, but which can also be used as a general-purpose programming language. Official-images repo's library/php file ( history) Official-images PRs with label library/php Repo-info repo's repos/php/ directory ( history) See docker/hub-beta-feedback#238 for more information. Note: the description for this image is longer than the Hub length limit of 25000, so the "Supported tags" list has been trimmed to compensate. Supported tags and respective Dockerfile links ![]() The Docker Community Forums, the Docker Community Slack, or Stack Overflow ![]()
0 Comments
Leave a Reply. |