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

COPY requirements.txt .

RUN echo "assumeyes=1" >> /etc/yum.conf
# Install build tools for building wheels.
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 config.py ./
COPY exceptions ./exceptions

CMD ["index.handler"]  
