api-server/scripts/build.sh

10 lines
248 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
2025-02-27 02:33:11 +00:00
docker build -t "${DOCKER_REGISTRY:-docker.io}/glmdev/p5x-api:latest" .