Skip to content

Instantly share code, notes, and snippets.

@ran-isenberg
Created May 10, 2025 14:11
Show Gist options
  • Select an option

  • Save ran-isenberg/154074c6bff01e9cbedcd53590b1c2c1 to your computer and use it in GitHub Desktop.

Select an option

Save ran-isenberg/154074c6bff01e9cbedcd53590b1c2c1 to your computer and use it in GitHub Desktop.
dockerfile mcp
FROM public.ecr.aws/docker/library/python:3.13-slim
COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.9.1 /lambda-adapter /opt/extensions/lambda-adapter
ENV PORT=8000
# Copies requirements.txt file into the container
COPY requirements.txt .
# Installs dependencies found in your requirements.txt file
RUN pip3 install -r requirements.txt --target "${LAMBDA_TASK_ROOT}"
WORKDIR /var/task
ADD service service/
# Set the CMD to your handler start function
CMD ["uvicorn", "--port", "8000", "service.handlers.server:app"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment