Difference between revisions of "Docker run php"

From wikieduonline
Jump to navigation Jump to search
(Created page with " FROM php:8.2-cli COPY . /usr/src/myapp WORKDIR /usr/src/myapp CMD [ "php", "./your-script.php" ] == See also == * {{Dockerfile}} * {{PHP}} Category:PHP")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
  FROM php:8.2-cli
+
{{lc}}
  COPY . /usr/src/myapp
+
* https://hub.docker.com/_/php
  WORKDIR /usr/src/myapp
+
 
  CMD [ "php", "./your-script.php" ]
+
  [[FROM]] php:8.2-cli
 +
  [[COPY]] . /usr/src/myapp
 +
  [[WORKDIR]] /usr/src/myapp
 +
  [[CMD]] [ "php", "./your-script.php" ]
 +
 
 +
== Related ==
 +
* [[docker build .]]
 +
 
  
 
== See also ==
 
== See also ==
 +
* {{docker build}}
 
* {{Dockerfile}}
 
* {{Dockerfile}}
 
* {{PHP}}
 
* {{PHP}}
  
 
[[Category:PHP]]
 
[[Category:PHP]]

Latest revision as of 20:15, 6 February 2024

Advertising: