Skip to content

Commit

Permalink
fix: support docker build on arm64 in kalix-scripts (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvlugter authored Jun 23, 2022
1 parent 0bebce6 commit 5b0c34b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion npm-js/kalix-scripts/bin/kalix-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ const requiredConfig = [

const kalixScriptDir = path.resolve(__dirname, '..');

const dockerBuildArgs =
process.arch === 'arm64'
? ['buildx', 'build', '--platform=linux/amd64']
: ['build'];

const dockerBuild = (dockerTag) =>
runOrFail('Building docker image', 'docker', [
'build',
...dockerBuildArgs,
'--tag',
dockerTag,
'.',
Expand Down

0 comments on commit 5b0c34b

Please sign in to comment.