forked from lithops-cloud/lithops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.arm64
More file actions
42 lines (36 loc) · 1020 Bytes
/
Dockerfile.arm64
File metadata and controls
42 lines (36 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM public.ecr.aws/lambda/python:3.8-arm64
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
unzip \
vim \
&& rm -rf /var/lib/apt/lists/* \
&& apt-cache search linux-headers-generic
RUN pip install --upgrade pip six && \
pip install --no-cache-dir \
awslambdaric \
boto3 \
redis \
httplib2 \
requests \
numpy \
scipy \
pandas \
pika \
kafka-python \
cloudpickle \
ps-mem \
tblib
# Define custom function directory
ARG FUNCTION_DIR="/function"
# Set working directory to function root directory
WORKDIR ${FUNCTION_DIR}
# Add Lithops
COPY lithops_lambda.zip ${FUNCTION_DIR}
RUN unzip lithops_lambda.zip \
&& rm lithops_lambda.zip \
&& mkdir handler \
&& touch handler/__init__.py \
&& mv entry_point.py handler/
ENTRYPOINT [ "/usr/local/bin/python", "-m", "awslambdaric" ]
CMD [ "handler.entry_point.lambda_handler" ]