-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (30 loc) · 887 Bytes
/
Dockerfile
File metadata and controls
38 lines (30 loc) · 887 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
FROM python:3.11
RUN python -m pip install awslambdaric
# Blender requirements
RUN apt-get update && apt-get install -y \
wget \
# to extract tar.xz
xz-utils \
# from https://github.com/blender/blender/blob/v3.3.0/release/freedesktop/snap/blender-snapcraft-template.yaml
libxcb1 \
libxext6 \
libx11-6 \
libxi6 \
libxfixes3 \
libxrender1 \
libxxf86vm1 \
# libGL
libgl1-mesa-glx \
# libxkbcommon.so.0 needed since 3.4.0 apparently
libxkbcommon0 \
# libSM.so.6 needed since 3.5.1 apparently
libsm6
RUN python -m pip install "numpy<2.0"
RUN python -m pip install bpy==4.4.0
ARG FUNCTION_DIR="/home/app/"
RUN mkdir -p ${FUNCTION_DIR}
WORKDIR ${FUNCTION_DIR}
COPY requirements.txt ${FUNCTION_DIR}
RUN python -m pip install -r requirements.txt
COPY app.py ${FUNCTION_DIR}
CMD python -m awslambdaric "app.lambda_handler"