chore: update .dockerignore and Dockerfile for improved build context and permissions

This commit is contained in:
krau
2025-05-19 09:23:24 +08:00
parent 729e688748
commit a474fdf6ae
3 changed files with 25 additions and 11 deletions

13
docker-compose.local.yml Normal file
View File

@@ -0,0 +1,13 @@
services:
saveany-bot:
build: .
container_name: saveany-bot
restart: unless-stopped
volumes:
- ./data:/app/data
- ./config.toml:/app/config.toml
- ./downloads:/app/downloads
- ./cache:/app/cache
# 使用 host 模式以便访问宿主机服务 (如代理)
# 如果你对 Docker 网络模式熟悉, 可以自行修改
network_mode: host