fix: update Dockerfile for poetry installation and fix pyproject.toml

This commit is contained in:
2026-03-09 13:39:38 -05:00
parent f3d9e452e2
commit 15c8589826
3 changed files with 13 additions and 6 deletions

View File

@@ -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/* 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 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 ./ COPY pyproject.toml poetry.lock README.md ./
RUN poetry install --without dev --no-interaction --no-root
COPY src/ ./src/ COPY src/ ./src/
RUN poetry install --no-ansi && rm -rf $POETRY_CACHE_DIR
COPY .env.example .env COPY .env.example .env
EXPOSE 8010 EXPOSE 8010

2
poetry.lock generated
View File

@@ -5590,4 +5590,4 @@ cffi = ["cffi (>=1.17,<2.0) ; platform_python_implementation != \"PyPy\" and pyt
[metadata] [metadata]
lock-version = "2.1" lock-version = "2.1"
python-versions = ">=3.13,<4.0" python-versions = ">=3.13,<4.0"
content-hash = "afcce5ebc6a3e5beddab029d1d1f8d2db09c80a2ad8db346fe591105335ce047" content-hash = "db40b33c9287459e675a33c333509775529ae3945c3104a6fbda6f104c33b2c3"

View File

@@ -46,4 +46,4 @@ test-cov = "pytest tests/test_agent.py --cov=src.naliiabot.bot.agent --cov-repor
[tool.setuptools.packages.find] [tool.setuptools.packages.find]
where = ["src"] where = ["src"]
include = ["*"] include = ["naliiabot*", "naliiabotapi*"]