FROM amazon/aws-lambda-python:3.11

RUN yum install -y gcc
COPY requirements.txt requirements-test.txt ./
RUN pip install --upgrade pip setuptools wheel && \
    pip install --use-pep517 -r requirements-test.txt

COPY lint-and-test.sh docker-compose.yaml .flake8 dev.py ./
COPY src/ ./src
COPY tests/ ./tests

ENTRYPOINT [ "/var/task/lint-and-test.sh" ]
