From ef7871eabdf5cea57549b131dce777ca04eac79e Mon Sep 17 00:00:00 2001 From: hailin Date: Thu, 8 May 2025 15:43:32 +0800 Subject: [PATCH] . --- .dockerignore | 37 +++++++++++++++++++++++++++++++++++++ build.sh | 5 +++++ 2 files changed, 42 insertions(+) create mode 100644 .dockerignore create mode 100644 build.sh diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9381915 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,37 @@ +# Python +__pycache__/ +*.pyc +*.pyo +*.pyd + +# 编辑器 & IDE +.vscode/ +.idea/ +*.swp + +# 日志 & 缓存 +*.log +*.tmp +*.bak +*.DS_Store + +# 虚拟环境 +.venv/ +env/ +venv/ + +# 数据 & 索引文件 +index_data/* +!index_data/.gitkeep + +# 文档 & 上传文件(避免打包私密文档) +docs/* +!docs/.gitkeep + +# Git +.git/ +.gitignore + +# OS 文件 +Thumbs.db +ehthumbs.db diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..71c5551 --- /dev/null +++ b/build.sh @@ -0,0 +1,5 @@ +docker build \ + --build-arg http_proxy=http://127.0.0.1:7890 \ + --build-arg https_proxy=http://127.0.0.1:7890 \ + --network=host \ + -t faiss-rag . \ No newline at end of file