-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
23 lines (16 loc) · 1.99 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use AWS Lambda Python runtime as the base image
FROM public.ecr.aws/lambda/python:3.11
# Set working directory to Lambda task root
WORKDIR ${LAMBDA_TASK_ROOT}
# Install system dependencies
RUN yum -y install gcc gcc-c++ make \
libpq-devel \
&& yum clean all
# Copy requirements file
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . .
# Set the Lambda handler
CMD ["main.handler"]