Skip to content

Commit

Permalink
feat(cli): enforce build for linux/riscv64 platform
Browse files Browse the repository at this point in the history
since the target is always a Cartesi Machine (riscv64), cartesi build
should enforce the docker build environment via --platform argument
  • Loading branch information
endersonmaia committed Oct 22, 2024
1 parent f84703a commit 69f6a5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-ghosts-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cartesi/cli": patch
---

enforce build for linux/riscv64 platform
2 changes: 2 additions & 0 deletions apps/cli/src/builder/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ const buildImage = async (options: ImageBuildOptions): Promise<string> => {
const args = [
"buildx",
"build",
"--platform",
"linux/riscv64",
"--file",
dockerfile,
"--load",
Expand Down

0 comments on commit 69f6a5e

Please sign in to comment.