From e0d67932841cda63ada5d3e3a7445a03cffe09df Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Thu, 24 Aug 2023 14:56:19 +0100 Subject: [PATCH] adding awslambdaric --- backend/docker/lambda.Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backend/docker/lambda.Dockerfile b/backend/docker/lambda.Dockerfile index a2a1de99..1fd98a64 100644 --- a/backend/docker/lambda.Dockerfile +++ b/backend/docker/lambda.Dockerfile @@ -30,5 +30,13 @@ COPY ./model_data/epc_attributes/ ./model_data/epc_attributes/ COPY ./datatypes/ ./datatypes/ COPY ./utils/ ./utils/ +# Since we are not using a base AWS image, there is some additional setup required. We need to set up the runtime +# interface client +# https://docs.aws.amazon.com/lambda/latest/dg/python-image.html#python-image-clients +# Additionally install the AWS Lambda RIC +RUN pip install awslambdaric + +# Set the ENTRYPOINT to the AWS Lambda RIC and CMD to your function handler +ENTRYPOINT [ "/usr/local/bin/python", "-m", "awslambdaric" ] # Define the handler location CMD ["backend.app.main.handler"]