Dockerfile 222 B

1234567891011
  1. # Use the PHP-Apache base image
  2. FROM php:8-apache
  3. # Copy project files to the /var/www/html directory
  4. COPY ../ /var/www/html/
  5. # Expose port 80
  6. EXPOSE 80
  7. # Start Apache server in the foreground
  8. CMD ["apache2-foreground"]