Files
notes/mytinytodo/build_and_run.sh
2021-09-14 06:29:17 -06:00

16 lines
261 B
Bash
Executable File

#! /bin/bash
img="php"
tag="7.1.26-alpine3.9"
docker pull $img:$tag
cp $PWD/entrypoint.sh $PWD/mnt/entrypoint.sh
docker run --rm -it \
--entrypoint sh \
--name ${img##*/} \
-p 8345:8080 \
-v $(pwd)/mnt:/mnt \
$img:$tag \
/mnt/entrypoint.sh