Difference between revisions of "Docker run php"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
  
  FROM php:8.2-cli
+
  [[FROM]] php:8.2-cli
  COPY . /usr/src/myapp
+
  [[COPY]] . /usr/src/myapp
  WORKDIR /usr/src/myapp
+
  [[WORKDIR]] /usr/src/myapp
  CMD [ "php", "./your-script.php" ]
+
  [[CMD]] [ "php", "./your-script.php" ]
  
 
== See also ==
 
== See also ==

Revision as of 20:14, 6 February 2024

Advertising: