php:apache

From wikieduonline
Jump to navigation Jump to search

Working example

FROM php:apache

# Copy your PHP files to the document root
COPY . /var/www/html

# Expose the web server port
EXPOSE 80

Bard example

FROM php:apache

# Copy your PHP files to the document root
COPY . /var/www/html 

# Expose the web server port
EXPOSE 80 

# Start the Apache web server
CMD ["apache2", "-D", "FOREGROUND"]

See also

Advertising: