Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scripts/build-docker-images
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
#!/bin/bash

echo "Building the docker images. Note this script should be run from the repository root."
docker build -t aggkit-prover:local .
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if something like the following would be enough:

SCRIPT_DIR="$(dirname "$0")"

It might treat symlinks a bit differently but is it an issue?

Also, the echo message saying the script should run from the root will be outdated with this change.

REPO_ROOT="$SCRIPT_DIR/.."
docker build -t aggkit-prover:local "$REPO_ROOT"