FROM tommylau/php-5.2

# # Use an older version of Debian
# FROM debian:stretch

# # Install Apache, PHP 5.2, and MySQL extension
# RUN apt-get update && apt-get install -y \
#     apache2 \
#     libapache2-mod-php5 \
#     php5-mysql

# # Configure Apache to run PHP and serve from /var/www/html
# RUN a2enmod php5
# RUN sed -i 's/\/var\/www\/html/\/var\/www\/html/g' /etc/apache2/sites-enabled/000-default
# RUN sed -i 's/\/var\/www\/html/\/var\/www\/html/g' /etc/apache2/sites-available/000-default

# # Expose ports
# EXPOSE 80

# # Start Apache
# CMD ["apache2ctl", "-D", "FOREGROUND"]