Spaces:
Build error
Build error
Download Dockerfile from cvachet/iris_classification_lambda: direct link, hf CLI and curl.
- Browser
- Download file 308 Bytes
-
https://huggingface.co/spaces/cvachet/iris_classification_lambda/resolve/779d080d892fa44cb9b4f1a15362536d62a4fa0e/Dockerfile
- Command line
-
hf download hf://spaces/cvachet/iris_classification_lambda@779d080d892fa44cb9b4f1a15362536d62a4fa0e/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/cvachet/iris_classification_lambda/resolve/779d080d892fa44cb9b4f1a15362536d62a4fa0e/Dockerfile
308 Bytes
| # Dockerfile | |
| FROM public.ecr.aws/lambda/python:3.11 | |
| # Copy function code | |
| COPY . ${LAMBDA_TASK_ROOT} | |
| # Install dependencies | |
| RUN pip install -r requirements.txt --target "${LAMBDA_TASK_ROOT}" | |
| # Run test cases as this saves the ML model in the container | |
| RUN pytest tests -s -v | |
| CMD ["lambda.lambda_handler"] | |