FROM amazon/aws-lambda-python:3.8

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 .flake8 ./
COPY src/ ./src
COPY common/ ./common
COPY config.py ./config.py
COPY tests/ ./tests

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