File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/layers/src/mediainfo Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,19 @@ export class MediaInfoLayer {
43
43
architecture : lambda . Architecture ,
44
44
version : string = DEFAULT_MEDIA_INFO_VERSION
45
45
) : lambda . LayerVersion {
46
- const runtime = lambda . Runtime . PYTHON_3_11 ;
47
46
const archName = architecture === lambda . Architecture . ARM_64 ? 'arm64' : 'x64' ;
48
47
48
+ // The Docker image to use to build the layer.
49
+ const image = cdk . DockerImage . fromRegistry (
50
+ `public.ecr.aws/sam/build-python3.11:1.124.0-${ architecture . name } `
51
+ ) ;
52
+
49
53
// Build the layer.
50
54
const layerAsset = new s3assets . Asset ( scope , `Asset-${ id } ` , {
51
55
path : path . join ( __dirname ) ,
52
56
assetHashType : cdk . AssetHashType . OUTPUT ,
53
57
bundling : {
54
- image : runtime . bundlingImage ,
58
+ image,
55
59
platform : architecture . dockerPlatform ,
56
60
command : [
57
61
'/bin/bash' ,
You can’t perform that action at this time.
0 commit comments