update
This commit is contained in:
@@ -25,10 +25,11 @@ import modal
|
|||||||
# Get the directory where this script actually lives on the machine running it
|
# Get the directory where this script actually lives on the machine running it
|
||||||
SCRIPT_DIR = Path(__file__).resolve().parent
|
SCRIPT_DIR = Path(__file__).resolve().parent
|
||||||
|
|
||||||
# Automatically resolve the root of the repository (climbing up 3 levels)
|
# Walk up until we find a marker directory that identifies the repo root.
|
||||||
# From: deps/implementation/backend_deploy/gitea_modal_build.py
|
# This makes the script robust regardless of where Modal mounts it.
|
||||||
# To: CODEBASE/
|
PROJECT_ROOT = SCRIPT_DIR
|
||||||
PROJECT_ROOT = SCRIPT_DIR.parents[2]
|
while not (PROJECT_ROOT / "backend").exists() and PROJECT_ROOT != PROJECT_ROOT.parent:
|
||||||
|
PROJECT_ROOT = PROJECT_ROOT.parent
|
||||||
|
|
||||||
# Explicitly find your local Dockerfile
|
# Explicitly find your local Dockerfile
|
||||||
DOCKERFILE_PATH = SCRIPT_DIR / "Dockerfile"
|
DOCKERFILE_PATH = SCRIPT_DIR / "Dockerfile"
|
||||||
|
|||||||
Reference in New Issue
Block a user