AWS ECR 基础镜像中的 ImageBind 安装问题
作者: adars-kafle创建于 2025年3月23日更新于 2025年3月23日
Use AWS Lambda Python 3.9 base image
FROM public.ecr.AWS/lambda/Python:3.9
Install system dependencies required for cartopy and other libraries
RUN yum install -y
gcc
python3-devel
python3-pip
git
python3-setuptools
libpng-devel
freetype-devel
libcurl-devel
openssl-devel
geos-devel
proj-devel
&& yum clean all
Upgrade pip
RUN pip install --upgrade pip
Copy and install Python dependencies
COPY ./requirements.txt /tmp/requirements.txt RUN pip install -r /tmp/requirements.txt
Clone and install ImageBind
RUN git clone https://GitHub.com/facebookresearch/ImageBind.git /opt/ImageBind
&& cd /opt/ImageBind
&& pip install .
&& cp -r imagebind /var/task/ && ls
Copy application code
COPY
内容来源: facebookresearch/ImageBind