feat: add Docker deployment for the bot

- Add Dockerfile for Python 3.13 container
- Update docker-compose with naliia_bot service
- Add DB_HOST config for container networking
- Add .dockerignore for build optimization
- Update README with Docker documentation
This commit is contained in:
2026-03-08 00:18:51 -05:00
parent c5022ff210
commit 3431a37119
6 changed files with 103 additions and 14 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM python:3.13-slim
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN pip install poetry
COPY pyproject.toml poetry.lock ./
RUN poetry install --no-dev --no-interaction
COPY src/ ./src/
COPY .env.example .env
EXPOSE 8010
CMD ["poetry", "run", "uvicorn", "src.naliiabotapi.main:app", "--host", "0.0.0.0", "--port", "8010"]