11 lines
199 B
Bash
11 lines
199 B
Bash
|
#!/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
|
||
|
|