Skip to content

Commit

Permalink
Fix docker build script (#325)
Browse files Browse the repository at this point in the history
* Pass arch as a docker build argument

* Fix build script binary file deletion
  • Loading branch information
khssnv authored Dec 20, 2022
1 parent ac8dbd4 commit 0106a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/docker/build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ then
else
echo "If not first build, proceed to docker-compose build and run"
fi
time docker build -f ./Dockerfile --build-arg RUSTC_WRAPPER= --build-arg PROFILE=release -t robonomics/robonomics:latest .
time docker build -f ./Dockerfile --build-arg RUSTC_WRAPPER= --build-arg PROFILE=release --build-arg TARGETARCH=$ARCH -t robonomics/robonomics:latest .

# cleanup binary file
rm robonomics
rm -r ${ARCH}

# Show the list of available images for this repo
echo "Image is ready"
Expand Down

0 comments on commit 0106a12

Please sign in to comment.