Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6866d126cb | ||
|
|
52901dd7c4 |
@@ -0,0 +1,22 @@
|
||||
# Secrets — never bake into the image
|
||||
.env
|
||||
|
||||
# Version control
|
||||
.git/
|
||||
.gitignore
|
||||
|
||||
# Python build artefacts
|
||||
__pycache__/
|
||||
*.pyc
|
||||
*.pyo
|
||||
.pytest_cache/
|
||||
|
||||
# Tests — not needed at runtime
|
||||
tests/
|
||||
|
||||
# Persistent data — mounted as a volume at runtime
|
||||
data/
|
||||
|
||||
# Tool configs — not needed in the container
|
||||
.claude/
|
||||
.gemini/
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
FROM python:3.13-slim
|
||||
|
||||
# Install uv
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install Python dependencies — cached independently of application code
|
||||
COPY pyproject.toml uv.lock ./
|
||||
RUN uv sync --frozen --no-dev --no-install-project
|
||||
|
||||
# Copy application source
|
||||
COPY src/ ./src/
|
||||
COPY chat_app.py main.py chainlit.toml ./
|
||||
COPY public/ ./public/
|
||||
|
||||
# Make the venv's binaries (chainlit, python, etc.) available directly
|
||||
ENV PATH="/app/.venv/bin:$PATH"
|
||||
|
||||
# data/ and openspec/ are expected to be mounted at runtime
|
||||
+1
-1
@@ -8,7 +8,7 @@ Ich helfe dir, dein Kind für die Spielgruppe anzumelden — schnell und unkompl
|
||||
|
||||
- **Anmeldung**: Ich führe dich Schritt für Schritt durch die Anmeldung
|
||||
- **Fragen beantworten**: Preise, Zeiten, Reglement — frag einfach
|
||||
- **Deutsch oder jede andere Sprache**: Schreib in der Sprache, die dir lieber ist
|
||||
- **Deutsch oder Englisch**: Schreib in der Sprache, die dir lieber ist
|
||||
|
||||
## Spielgruppen
|
||||
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ _notifier = AdminNotifier(
|
||||
_WELCOME_DE = (
|
||||
"Hallo! Ich bin der Anmeldeassistent der Spielgruppe Pumuckl. "
|
||||
"Ich kann dir helfen, dein Kind anzumelden, oder deine Fragen zur Spielgruppe beantworten.\n\n"
|
||||
"Du kannst mir auf die Sprache schreiben die du am besten kannst — ich antworte in derselben Sprache.\n\n"
|
||||
"Du kannst mir auf Deutsch oder Englisch schreiben — ich antworte in derselben Sprache.\n\n"
|
||||
"Womit kann ich dir helfen?"
|
||||
)
|
||||
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
services:
|
||||
|
||||
# Web chat interface — Chainlit served at http://localhost:8000
|
||||
web:
|
||||
build: .
|
||||
command: chainlit run chat_app.py --host 0.0.0.0 --port 8000
|
||||
ports:
|
||||
- "8000:8000"
|
||||
env_file: .env
|
||||
volumes:
|
||||
# Persistent storage for conversations and completed registrations
|
||||
- ./data:/app/data
|
||||
# Knowledge-base markdown files — edit on the host, no rebuild needed
|
||||
- ./openspec:/app/openspec:ro
|
||||
restart: unless-stopped
|
||||
|
||||
# Email polling agent — checks the inbox every POLL_INTERVAL seconds
|
||||
email-worker:
|
||||
build: .
|
||||
command: python main.py
|
||||
env_file: .env
|
||||
volumes:
|
||||
# Shares the same data directory as the web service
|
||||
- ./data:/app/data
|
||||
- ./openspec:/app/openspec:ro
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user