YouChuKoffee/sh/create.sh

15 lines
306 B
Bash
Raw Normal View History

2024-06-24 11:44:38 +08:00
#!/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}"