FROM public.ecr.aws/lambda/python:3.11
# Install the specified packages
RUN yum install -y mesa-libGL.x86_64 make gcc
RUN pip install --upgrade pip setuptools wheel
RUN pip install boto
RUN pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cpu
RUN pip install -U openmim
RUN mim install mmengine==0.10.3
RUN pip install mmcv==2.1.0 -f https://download.openmmlab.com/mmcv/dist/cpu/torch2.1/index.html
First few lines of the Dockerfile, since it fails on
RUN pip install mmcv==2.1.0 -f https://download.openmmlab.com/mmcv/dist/cpu/torch2.1/index.html
Reproduces the problem - command or script
Build Docker Image: docker build --no-cache -t test .
Prerequisite
Environment
Docker Mac
Reproduces the problem - code sample
Dockerfile
First few lines of the Dockerfile, since it fails on
RUN pip install mmcv==2.1.0 -f https://download.openmmlab.com/mmcv/dist/cpu/torch2.1/index.html
Reproduces the problem - command or script
Build Docker Image:
docker build --no-cache -t test .
Reproduces the problem - error message
Expected Result
RUN pip install mmcv==2.1.0 -f https://download.openmmlab.com/mmcv/dist/cpu/torch2.1/index.html
Running this command directly and not on docker is successful. Environment: Mac