Refactor Docker setup and enhance file transfer progress handling. Updated Dockerfile for multi-stage builds, modified docker-compose.yml to include image and container name, and improved progress bar functionality in app.js for better user feedback during file transfers.
This commit is contained in:
15
run.sh
Normal file
15
run.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# 一键运行:拉代码后执行 ./run.sh 即可
|
||||
# 需要本机已安装 Docker 和 Docker Compose
|
||||
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
echo ">>> 构建并启动 SFTP Manager..."
|
||||
docker compose up -d --build
|
||||
|
||||
echo ""
|
||||
echo ">>> 启动完成。"
|
||||
echo " 访问地址: http://localhost:48081/sftp-manager"
|
||||
echo " 停止服务: docker compose down"
|
||||
echo ""
|
||||
Reference in New Issue
Block a user