Clement Vachet commited on
Commit
c072afc
·
1 Parent(s): b51f064

Add dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile
2
+ FROM public.ecr.aws/lambda/python:3.11
3
+
4
+ # Copy function code
5
+ COPY . ${LAMBDA_TASK_ROOT}
6
+
7
+ # Install dependencies
8
+ RUN pip install -r requirements.txt --target "${LAMBDA_TASK_ROOT}"
9
+
10
+ # Run test cases as this saves the ML model in the container
11
+ RUN pytest tests -s -v
12
+
13
+ CMD ["lambda.lambda_handler"]