diff options
| author | Louis Burda <quent.burda@gmail.com> | 2024-03-30 15:37:05 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2024-03-30 15:37:05 +0100 |
| commit | 32309e019f2ff7d9f69f3e0016f67439e81b8b30 (patch) | |
| tree | ace9fccd48489648b0586a8f84da21839632d0b9 /solve/Dockerfile | |
| parent | 4007ea18f294aefb6128cbe82c5446cd8cb72c50 (diff) | |
| download | cscg24-lolpython-32309e019f2ff7d9f69f3e0016f67439e81b8b30.tar.gz cscg24-lolpython-32309e019f2ff7d9f69f3e0016f67439e81b8b30.zip | |
Rename to solve
Diffstat (limited to 'solve/Dockerfile')
| -rw-r--r-- | solve/Dockerfile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/solve/Dockerfile b/solve/Dockerfile new file mode 100644 index 0000000..4ca733e --- /dev/null +++ b/solve/Dockerfile @@ -0,0 +1,33 @@ +FROM php:7.3-apache + +ADD --chmod=0755 \ + https://raw.githubusercontent.com/reproducible-containers/repro-sources-list.sh/v0.1.0/repro-sources-list.sh \ + /usr/local/bin/repro-sources-list.sh + +#RUN bash /usr/local/bin/repro-sources-list.sh && apt-get update && apt-get -y install python2 curl tar +RUN apt-get update && apt-get -y install python2 curl tar + +# Expose apache. +EXPOSE 1024 + +ADD src/ /var/www/site/ + +RUN chmod -R 755 /var/www/ +RUN chown -R www-data:www-data /var/www + +COPY flag /flag +RUN chmod 777 /flag + +RUN mkdir -p /var/www/site/uploads +RUN chmod -R 777 /var/www/site/uploads + +# Update the default apache site with the config we created. +ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf + +RUN sed -i 's/Listen 80/Listen 1024/' /etc/apache2/ports.conf + + +# Install ply and lolcode1337 +WORKDIR /opt/ +RUN 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 && \ + tar -xvf ply-2.2.tar.gz && cd ply-2.2 && python2 setup.py install
\ No newline at end of file |
