15 lines
306 B
Bash
15 lines
306 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
IMAGE="msg:v1"
|
||
|
RPC_CONTAINER="msg"
|
||
|
RPC_PORT="9000"
|
||
|
API_PORT="8000"
|
||
|
V_REFLECT=""
|
||
|
|
||
|
|
||
|
docker build -t "${IMAGE}" . --no-cache
|
||
|
docker stop "${RPC_CONTAINER}"
|
||
|
|
||
|
docker rm "${RPC_CONTAINER}"
|
||
|
|
||
|
docker run -it -p "${RPC_PORT}:${RPC_PORT}" -p "${API_PORT}:${API_PORT}" --name "$RPC_CONTAINER" "${IMAGE}"
|