FROM python:3.12-slim WORKDIR /app ENV POETRY_VERSION=1.8.3 RUN pip install --no-cache-dir "poetry==$POETRY_VERSION" COPY pyproject.toml poetry.lock* /app/ RUN poetry config virtualenvs.create false \ && poetry install --no-interaction --no-ansi COPY . /app EXPOSE 8000 CMD ["poetry", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]