FROM httpd:2.4.59

RUN apt-get update -y && apt install -y libcgi-session-perl libpath-tiny-perl
RUN apt-get clean && rm -rf /var/cache/apt

COPY httpd.conf /usr/local/apache2/conf/
COPY listings.cgi /usr/local/apache2/cgi-bin/
RUN chmod 0655 /usr/local/apache2/cgi-bin/listings.cgi
