Files
my-worker/web-fast/bin/docker-build.sh
2025-04-17 14:00:41 +08:00

25 lines
708 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# /**
# * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
# * No deletion without permission, or be held responsible to law.
# *
# * Author: ThinkGem@163.com
# *
# */
echo ""
echo "[信息] 打包Web工程编译Docker镜像。"
echo ""
cd ..
mvn clean package docker:remove docker:build -Dmaven.test.skip=true -U
echo ""
echo ""
echo "参考下面的脚本,拷贝到 Docker 服务器上运行:"
echo ""
echo "docker run --name jeesite-web -p 8980:8980 -d --restart unless-stopped -v ~/:/data thinkgem/jeesite-web && docker logs -f jeesite-web"
echo ""
echo "启动完成后访问地址http://127.0.0.1:8980 用户名system 密码admin"
echo ""
cd bin