mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
14 lines
325 B
Bash
Executable File
14 lines
325 B
Bash
Executable File
|
|
#!/bin/sh
|
|
|
|
HASH=$(git rev-parse --short HEAD)
|
|
echo "Building backend with hash: $HASH"
|
|
|
|
sudo docker run --rm \
|
|
-v "$(pwd)":/app \
|
|
-w /app/phishingclub/frontend \
|
|
golang \
|
|
go build -trimpath \
|
|
-ldflags="-X github.com/phishingclub/phishingclub/version.hash=ph$HASH" \
|
|
-tags production -o ../build/phishingclub main.go
|