transfer_rs/sh/create.sh

18 lines
341 B
Bash
Raw Normal View History

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 18:05:50 +08:00
docker run -it -p "${API_PORT}:${API_PORT}" --name "$CONTAINER" "${IMAGE}"
docker run -it -p "10101:10101" --name "transfer_rs" "transfer_rs:v1"