We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75d7858 commit 8f2686cCopy full SHA for 8f2686c
scripts/build_layers.sh
@@ -51,9 +51,9 @@ function docker_build_zip {
51
--platform linux/${arch} \
52
--load
53
54
- # Run the image by runtime tag, tar its generatd `python` directory to sdout,
55
- # then extract it to a temp directory.
56
- docker run datadog-lambda-python-${arch}:$1 tar cf - python | tar -xf - -C $temp_dir
+ # Run the image by runtime tag and copy the output /build/python to the temp dir
+ dockerId=$(docker create datadog-lambda-python-${arch}:$1)
+ docker cp $dockerId:/build/python $temp_dir/python
57
58
59
# Zip to destination, and keep directory structure as based in $temp_dir
0 commit comments