From 15c85898262c2d3cd8185ed428c1413d166fd1f2 Mon Sep 17 00:00:00 2001 From: aserrador Date: Mon, 9 Mar 2026 13:39:38 -0500 Subject: [PATCH] fix: update Dockerfile for poetry installation and fix pyproject.toml --- Dockerfile | 15 +++++++++++---- poetry.lock | 2 +- pyproject.toml | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0adc111..7d66edd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,16 +2,23 @@ FROM python:3.13-slim RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/* -ENV PYTHONPATH=/app/src +ENV PYTHONPATH=/app/ \ + PYTHONUNBUFFERED=1 \ + PYTHONDONTWRITEBYTECODE=1 \ + POETRY_NO_INTERACTION=1 \ + POETRY_VIRTUALENVS_CREATE=false \ + POETRY_CACHE_DIR=/tmp/poetry_cache WORKDIR /app -RUN pip install poetry +RUN apt-get update \ + && pip install --no-cache-dir poetry \ + && rm -rf /var/lib/apt/lists/* COPY pyproject.toml poetry.lock README.md ./ -RUN poetry install --without dev --no-interaction --no-root - COPY src/ ./src/ + +RUN poetry install --no-ansi && rm -rf $POETRY_CACHE_DIR COPY .env.example .env EXPOSE 8010 diff --git a/poetry.lock b/poetry.lock index bce9fb9..ae6bce4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -5590,4 +5590,4 @@ cffi = ["cffi (>=1.17,<2.0) ; platform_python_implementation != \"PyPy\" and pyt [metadata] lock-version = "2.1" python-versions = ">=3.13,<4.0" -content-hash = "afcce5ebc6a3e5beddab029d1d1f8d2db09c80a2ad8db346fe591105335ce047" +content-hash = "db40b33c9287459e675a33c333509775529ae3945c3104a6fbda6f104c33b2c3" diff --git a/pyproject.toml b/pyproject.toml index 31863e1..3b61b1d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,4 +46,4 @@ test-cov = "pytest tests/test_agent.py --cov=src.naliiabot.bot.agent --cov-repor [tool.setuptools.packages.find] where = ["src"] -include = ["*"] +include = ["naliiabot*", "naliiabotapi*"]