Difference between revisions of "Template:Php:apache Dockerfile"

From wikieduonline
Jump to navigation Jump to search
(Created page with " FROM php:apache # Copy your PHP files to the document root COPY index.php /var/www/html # Expose the web server port EXPOSE 80")
 
Line 2: Line 2:
 
   
 
   
 
  # Copy your PHP files to the document root
 
  # Copy your PHP files to the document root
  [[COPY]] [[index.php]] [[/var/www/html]]
+
  [[COPY]] [[PHP: index.phpindex.php]] [[/var/www/html]]
 
   
 
   
 
  # Expose the web server port
 
  # Expose the web server port
 
  [[EXPOSE 80]]
 
  [[EXPOSE 80]]

Revision as of 14:06, 15 February 2024

FROM php:apache

# Copy your PHP files to the document root
COPY PHP: index.phpindex.php /var/www/html

# Expose the web server port
EXPOSE 80

Advertising: