FROM amazon/aws-lambda-python:3.11

COPY requirements.txt requirements-test.txt ./
RUN pip install --upgrade pip && \
    pip install -r requirements-test.txt

COPY config.py lint-and-test.sh docker-compose.yaml ./
RUN chmod 766 lint-and-test.sh
COPY constants/ ./constants
COPY helpers/ ./helpers
COPY src/ ./src
COPY tests/ ./tests
COPY config.py ./
COPY .flake8 ./

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