hyfetch/tools/build_rust.sh
2024-12-22 01:09:44 -05:00

12 lines
375 B
Bash

#!/usr/bin/env bash
set -e
# Step 1: Build the Docker image
echo "Building the Docker image..."
docker build -t rust-builder-general tools/rust-builder/general
# Step 2: Run the Docker container and execute the builder script
echo "Running the Docker container..."
docker run --rm -v "$(pwd)":/app rust-builder bash -c "cd /app && ./tools/rust-builder/general/builder.sh"