added build script for container (buildah)
This commit is contained in:
3
Makefile
3
Makefile
@@ -1,11 +1,10 @@
|
||||
#GOFLAGS=""
|
||||
LDFLAGS=-ldflags "-s -w"
|
||||
BINARY=metrorama
|
||||
|
||||
.DEFAULT_GOAL: $(BINARY)
|
||||
|
||||
$(BINARY): clean
|
||||
go build ${GOFLAGS} ${LDFLAGS} -o ${BINARY}
|
||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build ${GOFLAGS} ${LDFLAGS} -o ${BINARY}
|
||||
|
||||
install:
|
||||
go install ${GOFLAGS} ${LDFLAGS} -o ${BINARY}
|
||||
|
||||
Reference in New Issue
Block a user