FROM php:7-fpm
ADD bootstrap.sh /
RUN bash -c "/bootstrap.sh"
#!/bin/bash
set -x
while $1
do
echo "Press [CTRL+C] to stop.."
sleep 5
echo "My second and third argument is $2 & $3"
done
echo -n "enter type compose command ? "
read type
[[ "$type" ]] && docker-compose $type;