FROM public.ecr.aws/lambda/python:3.11.2023.11.13.10-x86_64

# Installs python, removes cache file to make things smaller
RUN yum update -y && \
    yum install -y python3 python3-dev python3-pip gcc git && \
    rm -Rf /var/cache/yum

# Copies requirements.txt file into the container
COPY requirements.txt ./
# Installs dependencies found in your requirements.txt file
RUN pip install --upgrade pip
RUN pip install -r requirements.txt

# Be sure to copy over the function itself!
COPY .. .

# Points to the handler function of your lambda function
CMD ["start_sync.lambda_handler"]
