Spaces:
Runtime error
Runtime error
Download Dockerfile from pawanmau01/testcap: direct link, hf CLI and curl.
- Browser
- Download file 625 Bytes
-
https://huggingface.co/spaces/pawanmau01/testcap/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/pawanmau01/testcap/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/pawanmau01/testcap/resolve/main/Dockerfile
625 Bytes
| FROM public.ecr.aws/lambda/python:3.12 | |
| # Copy requirements.txt | |
| COPY requirements.txt ${LAMBDA_TASK_ROOT} | |
| # Install the specified packages | |
| RUN pip install -r requirements.txt | |
| # Install OpenCV dependencies | |
| # RUN yum install -y libSM libXrender libXext | |
| # Copy function code | |
| COPY main.py ${LAMBDA_TASK_ROOT}/ | |
| COPY torch ${LAMBDA_TASK_ROOT}/torch/ | |
| COPY local_test.py ${LAMBDA_TASK_ROOT}/ | |
| # Ensure the model files have correct permissions | |
| RUN chmod -R 755 ${LAMBDA_TASK_ROOT}/torch/ | |
| RUN chmod -R 755 ${LAMBDA_TASK_ROOT} | |
| RUN chmod -R 755 ${LAMBDA_TASK_ROOT}/ | |
| # Set the CMD to run the test script | |
| CMD [ "main.lambda_handler" ] | |