Skip to content

Commit

Permalink
Added build-image target in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrinivas8687 committed Mar 2, 2023
1 parent e702514 commit 0b0afc6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
/.idea/
/.github/
/CODE_OF_CONDUCT.md
/bin/
/build/
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store*
/.idea/
/bin/
/vendor/
/build/
/vendor/
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b0afc6

Please sign in to comment.