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:
liu
2026-02-03 11:35:29 +08:00
parent 7e288f7c90
commit caf0d97903
6 changed files with 71 additions and 16 deletions

15
run.sh Normal file
View 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 ""