Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
juchiast committed Nov 6, 2023
1 parent 9ac29d5 commit ab4988a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/build_images.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -Eeuxo pipefail

mkdir -p ./target/container

time docker run --rm --name BUILD-SPACE \
-v "${PWD}":/build:Z,ro \
-v "${PWD}/target/container":/build/target:Z,rw \
-v SPACE-CARGO:/usr/local/cargo \
-e RUSTFLAGS="-C target-cpu=haswell" \
rust:latest \
bash -c "
cd /build/
cargo build --release -p flow-server
"

mkdir -p ./target/container_bin
cp ./target/container/release/flow-server ./target/container_bin
strip ./target/container_bin/*

docker build -t flow-server:latest -f ./crates/flow-server/Dockerfile ./target/container_bin

0 comments on commit ab4988a

Please sign in to comment.