archive
This commit is contained in:
15
mytinytodo/build_and_run.sh
Executable file
15
mytinytodo/build_and_run.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#! /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
|
||||
Reference in New Issue
Block a user