Spaces:
Sleeping
Sleeping
Gemini
commited on
Commit
·
e0a3d91
1
Parent(s):
42a79a5
fix(docker): Correct BASE_DIR in Dockerfile; revert debug prints in config.py
Browse files- Dockerfile +1 -1
- lpm_kernel/configs/config.py +2 -5
Dockerfile
CHANGED
|
@@ -75,7 +75,7 @@ RUN python -c "import lpm_kernel; print('Module import check passed')"
|
|
| 75 |
# Set environment variables
|
| 76 |
ENV PYTHONUNBUFFERED=1 \
|
| 77 |
PYTHONPATH=/app \
|
| 78 |
-
BASE_DIR=/app
|
| 79 |
LOCAL_LOG_DIR=/app/logs \
|
| 80 |
RUN_DIR=/app/run \
|
| 81 |
RESOURCES_DIR=/app/resources \
|
|
|
|
| 75 |
# Set environment variables
|
| 76 |
ENV PYTHONUNBUFFERED=1 \
|
| 77 |
PYTHONPATH=/app \
|
| 78 |
+
BASE_DIR=/app \
|
| 79 |
LOCAL_LOG_DIR=/app/logs \
|
| 80 |
RUN_DIR=/app/run \
|
| 81 |
RESOURCES_DIR=/app/resources \
|
lpm_kernel/configs/config.py
CHANGED
|
@@ -78,11 +78,8 @@ class Config:
|
|
| 78 |
for key, value in os.environ.items():
|
| 79 |
if not hasattr(instance, key.lower()): # Avoid overriding core configuration
|
| 80 |
# If it's a directory configuration, ensure using the correct base directory
|
| 81 |
-
if key.endswith("_DIR"):
|
| 82 |
-
|
| 83 |
-
if not os.path.isabs(value):
|
| 84 |
-
value = os.path.join(base_dir, value)
|
| 85 |
-
print(f"DEBUG: Joined with base_dir, new value: {value}") # DEBUG
|
| 86 |
instance._extra_config[key] = value
|
| 87 |
|
| 88 |
# Vector store settings
|
|
|
|
| 78 |
for key, value in os.environ.items():
|
| 79 |
if not hasattr(instance, key.lower()): # Avoid overriding core configuration
|
| 80 |
# If it's a directory configuration, ensure using the correct base directory
|
| 81 |
+
if key.endswith("_DIR") and not os.path.isabs(value):
|
| 82 |
+
value = os.path.join(base_dir, value)
|
|
|
|
|
|
|
|
|
|
| 83 |
instance._extra_config[key] = value
|
| 84 |
|
| 85 |
# Vector store settings
|