cognee/distributed/modal_image.py
2025-07-08 22:47:09 +02:00

11 lines
320 B
Python

import pathlib
from os import path
from modal import Image
from logging import getLogger
logger = getLogger("modal_image_creation")
image = Image.from_dockerfile(
path=pathlib.Path(path.join(path.dirname(__file__), "Dockerfile")).resolve(),
force_build=False,
).add_local_python_source("cognee", "entrypoint")