Skip to content

Commit

Permalink
only add --platform flag if platform isn't null
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Feb 15, 2024
1 parent c4d0ec3 commit 053d5e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spec-node/containerFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ export async function updateRemoteUserUID(params: DockerResolverParameters, merg
'build',
'-f', destDockerfile,
'-t', fixedImageName,
'--platform', platform,
...(platform ? ['--platform', platform] : []),
'--build-arg', `BASE_IMAGE=${imageName}`,
'--build-arg', `REMOTE_USER=${remoteUser}`,
'--build-arg', `NEW_UID=${await cliHost.getuid!()}`,
Expand Down

0 comments on commit 053d5e8

Please sign in to comment.