refactor(config): Switch to environment variables for API keys
- Modifies docker-compose.yml to use for injecting the Gemini API key, which is more robust than volume mounting. - Updates helpers.py to prioritize reading the API key from the environment variable. - Removes the now-redundant file-based key loading logic from config.py and the Dockerfile. - This change completely bypasses the problematic file system interactions within the container, providing a definitive fix for the 'API Key missing' error.
This commit is contained in:
@@ -36,7 +36,6 @@ COPY helpers.py .
|
||||
COPY config.py .
|
||||
# Use the specific requirements file for this app
|
||||
COPY gtm-architect/requirements.txt .
|
||||
COPY gemini_api_key.txt .
|
||||
COPY gtm_db_manager.py .
|
||||
|
||||
# Install Python and Node.js dependencies
|
||||
|
||||
Reference in New Issue
Block a user