FROM public.ecr.aws/lambda/python:3.8

COPY requirements.txt .

RUN echo "assumeyes=1" >> /etc/yum.conf
RUN yum update && yum install -y gcc gcc-c++ make

RUN pip install --upgrade pip && \
    pip install setuptools wheel && \
    pip install -r requirements.txt

COPY index.py rules.py config.py ./
COPY constants ./constants

CMD ["index.handler"]  
