Files
agent-claw/cdk/node_modules/@aws-cdk/asset-node-proxy-agent-v6/layer/build.sh
2026-05-06 18:55:16 -05:00

21 lines
446 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
cd $(dirname $0)
mkdir -p ../lib
echo ">> Building AWS Lambda layer inside a docker image for Proxy Agent..."
TAG='aws-lambda-node-proxy-agent'
docker build -t ${TAG} .
echo ">> Extrating layer.zip from the build container..."
CONTAINER=$(docker run -d ${TAG} false)
docker cp ${CONTAINER}:/layer.zip ../lib/layer.zip
echo ">> Stopping container..."
docker rm -f ${CONTAINER}
echo ">> lib/layer.zip is ready"