FROM amazon/aws-lambda-python:3.13 AS integration-test

COPY config.py lint-and-test.sh docker-compose.yaml pyproject.toml uv.lock Makefile ./
COPY src/ ./src
COPY tests/ ./tests
COPY scripts/ ./scripts

COPY --from=ghcr.io/astral-sh/uv:0.6.9 /uv /uvx /bin/
RUN uv sync --extra dev
RUN chmod +x scripts/integration.sh

ENTRYPOINT ["scripts/integration.sh"]
