Created
May 10, 2025 14:11
-
-
Save ran-isenberg/154074c6bff01e9cbedcd53590b1c2c1 to your computer and use it in GitHub Desktop.
dockerfile mcp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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