diff --git a/.dockerignore b/.dockerignore index 554af06..92a68fd 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,5 @@ /.idea/ /.github/ +/CODE_OF_CONDUCT.md +/bin/ +/build/ \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2d340a3..124352c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .DS_Store* /.idea/ /bin/ -/vendor/ +/build/ +/vendor/ \ No newline at end of file diff --git a/Makefile b/Makefile index 76ce1f9..6535bf1 100644 --- a/Makefile +++ b/Makefile @@ -16,13 +16,17 @@ benchmark: .PHONY: clean clean: - rm -rf ./build + rm -rf ./bin ./build ./vendor .PHONY: install install: go build -mod=readonly -tags="${BUILD_TAGS}" -ldflags="${LD_FLAGS}" \ -o ${GOPATH}/bin/sentinelnode main.go +.PHONY: build-image +build-image: + @docker build --compress --file Dockerfile --force-rm --no-cache --tag sentinel-dvpn-node . + .PHONY: go-lint go-lint: @golangci-lint run --fix