SeaBattle/rust/build_docker_image.sh

11 lines
199 B
Bash
Raw Permalink Normal View History

2022-10-16 12:36:57 +00:00
#!/bin/bash
cargo build --release --bins
TEMP_DIR=$(mktemp -d)
cp target/release/sea_battle_backend "$TEMP_DIR"
docker build -f Dockerfile "$TEMP_DIR" -t pierre42100/seabattleapi
rm -r $TEMP_DIR