Playing with different Docker settings to find the best one

This commit is contained in:
unclecode
2024-06-18 19:08:46 +08:00
parent 4a50781453
commit 4d43880cde
6 changed files with 187 additions and 7 deletions

View File

@@ -1,8 +1,18 @@
from setuptools import setup, find_packages
import os
import os, sys
from pathlib import Path
import subprocess
from setuptools.command.install import install
def get_home_folder():
home_folder = os.path.join(Path.home(), ".crawl4ai")
os.makedirs(home_folder, exist_ok=True)
os.makedirs(f"{home_folder}/cache", exist_ok=True)
os.makedirs(f"{home_folder}/models", exist_ok=True)
return home_folder
home_folder = get_home_folder()
# Read the requirements from requirements.txt
with open("requirements.txt") as f:
requirements = f.read().splitlines()