clean up docker build
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
2020-10-04 14:32:06 -07:00
parent d9f4ba437f
commit 1d84fac678
4 changed files with 57 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
ARCH := $(shell uname -m)
VERSION := $(shell git describe --always --dirty=-dirty --exclude="*")
VERSION := $(shell git describe --always --dirty=-dirty)
FN := http
@@ -14,6 +14,10 @@ default: debug
commit: fmt lint
git commit -a
# get goimports with:
# go get golang.org/x/tools/cmd/goimports
# get golangci-lint with:
# go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.31.0
fmt:
goimports -l -w .
golangci-lint run --fix
@@ -35,10 +39,7 @@ clean:
-rm -f ./$(FN)d debug.log
docker:
docker build .
docker build --progress plain .
get:
cd cmd/$(FN)d && go get -v
./$(FN)d: cmd/$(FN)d/main.go */*.go get
./$(FN)d: cmd/$(FN)d/main.go */*.go
cd cmd/$(FN)d && go build -o ../../$(FN)d $(GOFLAGS) .