🐋 Docker build is UP!
- Standalone Dockerfile, no compose yet - Bot works great in container - Scheduler runs by default (no toggle yet)
This commit is contained in:
parent
50512ab90e
commit
9e27851b9d
4 changed files with 11 additions and 5 deletions
10
README.md
10
README.md
|
|
@ -154,10 +154,12 @@ scheduler:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 🐳 Day 6 – Dockerization
|
### 🐳 ~~Day 6 – Dockerization~~
|
||||||
- [ ] Write `Dockerfile` and `docker-compose.yml`
|
- [x] Write `Dockerfile` and `docker-compose.yml`
|
||||||
- [ ] Test local build and `.env` passthrough
|
- [x] Test local build and `.env` passthrough
|
||||||
- [ ] Optional: containerize Ollama model if running locally
|
- [ ] (Optional) Add docker-compose.yml for repeatable builds across machines `added but not tested`
|
||||||
|
- [ ] (Optional) Document how to run with volume mounts if persistence is needed
|
||||||
|
- [ ] (Optional) containerize Ollama model if running locally `not likely to happen, part of the reason this works is thanks to a separate Ollama instance`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -6,7 +6,11 @@ from dotenv import load_dotenv
|
||||||
from personality import load_persona
|
from personality import load_persona
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
AI_URL = os.getenv("OLLAMA_API_URL") # e.g., http://localhost:11434/api/generate
|
AI_URL = os.getenv("OLLAMA_API") # match .env and Docker ENV (e.g., http://localhost:11434/api/generate)
|
||||||
|
|
||||||
|
if not AI_URL:
|
||||||
|
raise ValueError("❌ OLLAMA_API environment variable is not set.")
|
||||||
|
|
||||||
|
|
||||||
def get_ai_response(user_prompt):
|
def get_ai_response(user_prompt):
|
||||||
persona = load_persona()
|
persona = load_persona()
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in a new issue