refine docker layers (#606)

### What problem does this PR solve?


### Type of change

- [x] Performance Improvement
This commit is contained in:
KevinHuSh
2024-04-29 17:57:40 +08:00
committed by GitHub
parent 38f0cc016f
commit 2af74cc494
2 changed files with 12 additions and 5 deletions

View File

@ -66,6 +66,15 @@ def get_rag_python_directory(*args):
return get_rag_directory("python", *args)
def get_home_cache_dir():
dir = os.path.join(os.path.expanduser('~'), ".raglow")
try:
os.mkdir(dir)
except OSError as error:
pass
return dir
@cached(cache=LRUCache(maxsize=10))
def load_json_conf(conf_path):
if os.path.isabs(conf_path):