#!/bin/bash

docker run -d \
           -p 8010:80 \
           -v $PWD/php-config.ini:/usr/local/etc/php/conf.d/extra.ini:ro \
           -v $PWD/src:/var/www/html:ro \
           -v $PWD/password.txt:/password.txt:ro \
           -v $PWD/init.sh:/sbin/challenge-init.sh:ro \
           --read-only \
           --tmpfs /var \
           --tmpfs /sessions \
           --name very-old-website \
           --env CTF_FLAG="IG{3-0PHP0IS0FUN0!}" \
	   --restart=unless-stopped \
           php:7.2-apache \
           bash /sbin/challenge-init.sh
