added build script for container (buildah)

This commit is contained in:
Fabrizio Furnari
2020-12-09 00:31:03 +01:00
parent a43cae385c
commit 73afbef415
2 changed files with 25 additions and 2 deletions

View File

@@ -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}