The bot service in docker-compose.yml builds from ./bot, but the agent code lived in 'ai procurement/' and ./bot was only a Windows junction on reza.g's machine (and was gitignored) — exactly as the team reported: 'bot/ was never committed — prod-v7's bot is un-buildable from the repo.' - junction removed; 'ai procurement/' renamed to 'bot/' via git mv (all 41 files keep their history as pure renames) - 'bot/' dropped from .gitignore (voice/ stays ignored — runtime voice notes; bot/.env stays ignored by bot/.gitignore) - compose needs no change: context: ./bot and ./bot/app now resolve to committed files - bot/INTEGRATION-REPORT.md added: full story (problem, root cause, git state, security note on the committed BALE_BOT_TOKEN / AI_API_KEY compose defaults, and usage instructions for the team) Verified: 41 renames staged with zero secret/cache files; voice/ and bot/.env still ignored.
24 lines
657 B
Docker
24 lines
657 B
Docker
# Bale procurement bot — a long-polling worker against tapi.bale.ai.
|
|
# ffmpeg converts Bale voice notes (OGG/Opus) before they are sent to STT.
|
|
FROM python:3.13-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ffmpeg \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /srv/bot
|
|
|
|
# Dependencies first (layer caching). PIP_INDEX_URL overridable like the api image.
|
|
ARG PIP_INDEX_URL=https://pypi.org/simple
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -i ${PIP_INDEX_URL} -r requirements.txt
|
|
|
|
# Application
|
|
COPY app ./app
|
|
COPY tools ./tools
|
|
|
|
CMD ["python", "-m", "app.main"]
|