Skip to content

Commit

Permalink
add docker build script for rust codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamsinclair committed Jan 7, 2024
1 parent 54e1308 commit 82d1704
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/build-rust.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
set -e

if [ ! -z "$RUST_IMG" ]
then
# Get part after ":" (https://stackoverflow.com/a/15149278/439965).
IMG_SUFFIX=-${RUST_IMG#*:}
fi
IMG_NAME=squoosh-rust$IMG_SUFFIX
docker build -t $IMG_NAME --build-arg RUST_IMG - < ../rust.Dockerfile
docker run -it --rm -v $PWD:/src $IMG_NAME "$@"

0 comments on commit 82d1704

Please sign in to comment.