api-server/scripts/build.sh

10 lines
229 B
Bash
Raw Normal View History

2025-02-23 18:29:38 +00:00
#!/bin/sh -e
if ! [ -f Cargo.toml ]; then
echo "This script must be run from the root of the repo."
exit 1
fi
cargo build --release --target x86_64-unknown-linux-gnu
docker build -t "${DOCKER_REGISTRY}/p5x-rs:latest" .