#!/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" .