Dockerfile (1058B)
1FROM php:7.3-apache 2 3ADD --chmod=0755 \ 4 https://raw.githubusercontent.com/reproducible-containers/repro-sources-list.sh/v0.1.0/repro-sources-list.sh \ 5 /usr/local/bin/repro-sources-list.sh 6 7#RUN bash /usr/local/bin/repro-sources-list.sh && apt-get update && apt-get -y install python2 curl tar 8RUN apt-get update && apt-get -y install python2 curl tar 9 10# Expose apache. 11EXPOSE 1024 12 13ADD src/ /var/www/site/ 14 15RUN chmod -R 755 /var/www/ 16RUN chown -R www-data:www-data /var/www 17 18COPY flag /flag 19RUN chmod 777 /flag 20 21RUN mkdir -p /var/www/site/uploads 22RUN chmod -R 777 /var/www/site/uploads 23 24# Update the default apache site with the config we created. 25ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf 26 27RUN sed -i 's/Listen 80/Listen 1024/' /etc/apache2/ports.conf 28 29 30# Install ply and lolcode1337 31WORKDIR /opt/ 32RUN curl https://www.dabeaz.com/ply/ply-2.2.tar.gz -k -o ply-2.2.tar.gz && curl http://dalkescientific.com/writings/diary/lolpython.py -k -o lolcode.py && \ 33 tar -xvf ply-2.2.tar.gz && cd ply-2.2 && python2 setup.py install