mirror of
https://github.com/go-micro/go-micro.git
synced 2025-01-29 18:04:17 +02:00
17 lines
289 B
Makefile
17 lines
289 B
Makefile
|
|
GOPATH:=$(shell go env GOPATH)
|
|
|
|
.PHONY: proto test docker
|
|
|
|
proto:
|
|
protoc --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/example/example.proto
|
|
|
|
build: proto
|
|
go build -o template-api main.go
|
|
|
|
test:
|
|
go test -v ./... -cover
|
|
|
|
docker:
|
|
docker build . -t template-api:latest
|