freechat/docker-auto-build.sh

27 lines
467 B
Bash

#!/bin/sh
# Building
cargo_targets="json-api"
mkdir -p bin/
# Statically built binaries make this part really easy
for target in $cargo_targets;do
echo ================================================
echo =
echo =
echo =
echo = Building $target
echo =
echo =
echo =
echo ================================================
cd $target
cargo build --release
cp target/release/$target ../bin/
cd ../
done
echo Done building