# Use the official PHP image with Apache
FROM php:8.1-apache

# Install git and docker-compose
RUN apt-get update && \
    apt-get install -y git docker-compose && \
    rm -rf /var/lib/apt/lists/*

# Copy the PHP file to the Apache document root
COPY webhook.php /var/www/html/index.php

# Expose port 80
EXPOSE 80

# Start Apache server
CMD ["apache2-foreground"]