2024-06-18 18:14:57 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
IMAGE="transfer_rs:v1"
|
|
|
|
CONTAINER="transfer_rs"
|
|
|
|
API_PORT="10101"
|
|
|
|
V_REFLECT=""
|
|
|
|
|
2024-06-19 10:59:55 +08:00
|
|
|
docker build -t "${IMAGE}" . --no-cache
|
|
|
|
|
|
|
|
|
2024-06-18 18:14:57 +08:00
|
|
|
docker stop "${CONTAINER}"
|
|
|
|
|
|
|
|
docker rm "${CONTAINER}"
|
|
|
|
|
2024-06-19 10:59:55 +08:00
|
|
|
docker run -it -p "${API_PORT}:${API_PORT}" --name "$CONTAINER" "${IMAGE}"
|