# Use the official Apache HTTP Server image as the base image
FROM httpd:latest

# Install OpenSSL for SSL configuration
RUN apt-get update && apt-get install -y openssl

# Copy custom configuration files into the container
COPY ./conf/httpd.conf /usr/local/apache2/conf/httpd.conf
COPY ./conf/ssl/ /usr/local/apache2/conf/ssl/

# Expose ports for HTTP and HTTPS
EXPOSE 80
EXPOSE 443

# Start Apache in the foreground
CMD ["httpd-foreground"]
