8 lines
246 B
Makefile
8 lines
246 B
Makefile
version := $(shell grep 'version =' main.go | cut -d'"' -f2)
|
|
|
|
build-linux:
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./tmp/learndrone ./main.go
|
|
|
|
pack-docker:
|
|
make build-linux
|
|
docker build -t learndrone:${version} -t learndrone:latest .
|