# Use an official Python runtime as a parent image
FROM public.ecr.aws/lambda/python:3.10

# Copy app to lambda root
COPY . ${LAMBDA_TASK_ROOT}

# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Lambder handler
CMD ["app.lambda_handler_fn"]