FROM python:3.12 WORKDIR /app EXPOSE 8000 COPY pyproject.toml poetry.lock ./ RUN pip --no-cache-dir install poetry RUN poetry export --without-hashes -f requirements.txt -o requirements.txt RUN pip install --no-cache-dir -r requirements.txt COPY . . CMD ["python", "-m", "src.api_app"]