FROM 086679231553.dkr.ecr.us-east-1.amazonaws.com/docker-parent-images:lambda-python311

# Cached natively if unchanged.
COPY requirements.txt ./requirements.txt
COPY requirements-dev.txt ./requirements-dev.txt

# Requirements will only reinstall if they have changed.
RUN pip install --upgrade pip
RUN pip install setuptools wheel
RUN pip install -r requirements.txt -r requirements-dev.txt

COPY .coveragerc docker-compose.yaml .flake8 lint-and-test.sh ./
COPY tests ./tests

COPY index.py config.py ./
COPY constants ./constants
COPY helpers ./helpers

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