#!/bin/bash -eu layer_dir=$(realpath "$1") platform="linux/arm64" python_version="3.10" shift pip_args=("$@") v docker run --platform "$platform" --rm -v "$layer_dir/python":/python --entrypoint "" public.ecr.aws/lambda/python:"$python_version" pip install -t /python "${pip_args[@]}"