write-ups-challenges-2019-2020/very-old-website/docker.sh
2022-11-24 22:43:03 +01:00

17 lines
545 B
Bash
Executable File

#!/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