updated docker
This commit is contained in:
parent
f57e0de3e7
commit
5d0556cb18
@ -4,6 +4,7 @@ CONTAINER_NAME="usse_react"
|
|||||||
IMAGE_NAME="usse_react"
|
IMAGE_NAME="usse_react"
|
||||||
PORT_MAPPING="15015:3000"
|
PORT_MAPPING="15015:3000"
|
||||||
COMMAND="bash"
|
COMMAND="bash"
|
||||||
|
OUT_JSON_PATH=`realpath ../scrape/out.json`
|
||||||
|
|
||||||
ok () {
|
ok () {
|
||||||
echo -e "[\033[32;1m+\033[0m] $@"
|
echo -e "[\033[32;1m+\033[0m] $@"
|
||||||
@ -65,4 +66,4 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# Run container
|
# Run container
|
||||||
docker run --name ${CONTAINER_NAME} -p ${PORT_MAPPING} -v /home/eljakim/Source/usse/source/scrape/out.json:/usr/src/app/src/locations.json ${IMAGE_NAME}
|
docker run --name ${CONTAINER_NAME} -p ${PORT_MAPPING} -v ${OUT_JSON_PATH}:/usr/src/app/src/locations.json ${IMAGE_NAME}
|
Loading…
Reference in New Issue
Block a user