mirror of
https://github.com/skoobasteeve/successfactors-python.git
synced 2026-03-20 11:38:58 +00:00
initial code commit
This commit is contained in:
24
Lambda/Dockerfile
Normal file
24
Lambda/Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM public.ecr.aws/lambda/python:3.9
|
||||
|
||||
# Install the function's dependencies using file requirements.txt
|
||||
# from your project folder.
|
||||
RUN yum install -y \
|
||||
gcc \
|
||||
gcc-c++ \
|
||||
Cython \
|
||||
make \
|
||||
libxml2 \
|
||||
libxslt \
|
||||
xmlsec1 \
|
||||
xmlsec1-devel \
|
||||
xmlsec1-openssl \
|
||||
libtool-ltdl-devel
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip3 install -r requirements.txt --target "${LAMBDA_TASK_ROOT}"
|
||||
|
||||
# Copy function code
|
||||
COPY lambda_function/* ${LAMBDA_TASK_ROOT}/
|
||||
|
||||
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
|
||||
CMD [ "lambda_function.lambda_handler" ]
|
||||
Reference in New Issue
Block a user