FROM public.ecr.aws/lambda/python:3.12 # Install Lambda Web Adapter COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.8.4 /lambda-adapter /opt/extensions/lambda-adapter # Install workspace-mcp and dependencies RUN pip install workspace-mcp==1.20.3 boto3 --quiet # Copy bootstrap and helper scripts COPY bootstrap /var/task/bootstrap COPY fetch_credentials.py /var/task/fetch_credentials.py COPY proxy.py /var/task/proxy.py RUN chmod +x /var/task/bootstrap # Lambda Web Adapter config — proxy listens on 8080, workspace-mcp on 8081 ENV AWS_LAMBDA_EXEC_WRAPPER=/opt/bootstrap ENV PORT=8080 ENV PROXY_PORT=8080 ENV READINESS_CHECK_PATH=/health CMD ["/var/task/bootstrap"]