1 Star 4 Fork 1

dafengzhen/youdeyiwu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
update.sh 583 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh
# This is a script that conveniently updates the Docker image for the current project using default settings.
# If you have customized settings, you may need to update the script accordingly.
CONTAINER_ID="$1"
if [ -z "$CONTAINER_ID" ]; then
echo "Please provide a container ID or 'none' as an argument."
exit 1
fi
if [ "$CONTAINER_ID" = "none" ]; then
echo "Skipping container stop and removal."
else
docker stop "$CONTAINER_ID"
docker rm "$CONTAINER_ID"
fi
docker build -t youdeyiwu .
docker run --name youdeyiwu --restart=always -d -p 8080:8080 youdeyiwu
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/dafengzhen/youdeyiwu.git
[email protected]:dafengzhen/youdeyiwu.git
dafengzhen
youdeyiwu
youdeyiwu
main

搜索帮助