Difference between revisions of "Php:apache"

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
  
  
 
+
== Bard example ==
  FROM php:7.4-apache
+
  [[FROM]] php:7.4-apache
 
   
 
   
 
  # Copy your PHP files to the document root
 
  # Copy your PHP files to the document root
  COPY . [[/var/www/html]]  
+
  [[COPY]] . [[/var/www/html]]  
 
   
 
   
 
  # Expose the web server port
 
  # Expose the web server port
Line 18: Line 18:
 
   
 
   
 
  # Start the Apache web server
 
  # Start the Apache web server
  CMD ["apache2", "-D", "FOREGROUND"]
+
  CMD ["[[apache2]]", "[[-D]]", "[[FOREGROUND]]"]
  
  

Revision as of 20:55, 6 February 2024

Advertising: