piston/docker/execute

11 lines
129 B
Bash
Executable File

#!/usr/bin/env bash
abs=$1
file=$(basename $abs)
docker run \
--rm \
-v $abs:/$file \
-it foo \
python3 /$file