mirror of
https://github.com/traefik/traefik.git
synced 2025-05-18 21:54:39 +00:00
- binary (simple traefik build) - crossbinary, cross build using gox Signed-off-by: Vincent Demeester <vincent@sbr.pm>
15 lines
249 B
Bash
Executable File
15 lines
249 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if ! test -e gen.go; then
|
|
echo >&2 'error: generate must be run before binary'
|
|
false
|
|
fi
|
|
|
|
rm -f dist/traefik
|
|
rm -rf Godeps/_workspace/pkg
|
|
|
|
# Build binaries
|
|
CGO_ENABLED=0 godep go build -a -installsuffix nocgo -o dist/traefik .
|
|
|