mirror of
https://github.com/awslabs/amazon-bedrock-agentcore-samples.git
synced 2025-09-08 20:50:46 +00:00
14 lines
347 B
Docker
14 lines
347 B
Docker
FROM public.ecr.aws/lambda/python:3.11
|
|
|
|
# Copy requirements first for better caching
|
|
COPY requirements.txt ${LAMBDA_TASK_ROOT}
|
|
|
|
# Install Python dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy function code
|
|
COPY mcp-tool-handler.py ${LAMBDA_TASK_ROOT}
|
|
|
|
# Set the CMD to your handler
|
|
CMD ["mcp-tool-handler.lambda_handler"]
|