diff --git a/Dockerfile b/Dockerfile index 8a106cb..90bf033 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,5 +3,10 @@ FROM public.ecr.aws/lambda/python:3.9 # Copy function code COPY . ${LAMBDA_TASK_ROOT}/ +# Install dependencies +RUN pip3 install pipenv +RUN pipenv requirements > requirements.txt +RUN pip3 install -r requirements.txt --target "${LAMBDA_TASK_ROOT}" + # Default handler. See README for how to override to a different handler. CMD [ "lambdas.format_input.lambda_handler" ]