Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 0fbd446

Browse files
committed
chore: add documentation to getDockerPlatformNameFromArchitectures
1 parent 907939d commit 0fbd446

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lambda-powertools-layer.ts

+2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ function getLanguageNameFromRuntimeFamily(runtimeFamily: lambda.RuntimeFamily):
132132
}
133133
}
134134

135+
// Docker expects a single string for the --platform option.
136+
// getDockerPlatformNameFromArchitectures converts the Architecture enum to a string.
135137
function getDockerPlatformNameFromArchitectures(architectures: lambda.Architecture[]): string {
136138
if (architectures.length == 1) {
137139
return architectures[0].dockerPlatform;

0 commit comments

Comments
 (0)