# Tasker API — Docker image
# Installs from PyPI so it works regardless of whether the package
# was installed via pip or built locally. No local source needed.

FROM python:3.12-slim

WORKDIR /app

RUN pip install --no-cache-dir socialseed-tasker

ENV TASKER_NEO4J_URI=bolt://tasker-db:7687
ENV TASKER_NEO4J_USERNAME=neo4j
ENV TASKER_NEO4J_PASSWORD=neoSocial
ENV TASKER_API_HOST=0.0.0.0
ENV TASKER_API_PORT=8000

EXPOSE 8000

CMD ["python", "-m", "socialseed_tasker.infrastructure.web_api.__main__"]
