Skip to content

Commit

Permalink
stamp: add docker build script with exposed envs
Browse files Browse the repository at this point in the history
  • Loading branch information
kallebysantos committed Nov 9, 2024
1 parent a83eeac commit d736249
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/build_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e

SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")

export $(grep -v '^#' "$SCRIPTPATH/../.env" | xargs)

docker build \
--build-arg "GIT_V_TAG=$GIT_V_TAG" \
--build-arg "ONNXRUNTIME_VERSION=$ONNXRUNTIME_VERSION" \
"$@" \
"$SCRIPTPATH/.."

0 comments on commit d736249

Please sign in to comment.