Skip to content

Commit 0b0afc6

Browse files
committed
Added build-image target in Makefile
1 parent e702514 commit 0b0afc6

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
/.idea/
22
/.github/
3+
/CODE_OF_CONDUCT.md
4+
/bin/
5+
/build/

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.DS_Store*
22
/.idea/
33
/bin/
4-
/vendor/
4+
/build/
5+
/vendor/

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ benchmark:
1616

1717
.PHONY: clean
1818
clean:
19-
rm -rf ./build
19+
rm -rf ./bin ./build ./vendor
2020

2121
.PHONY: install
2222
install:
2323
go build -mod=readonly -tags="${BUILD_TAGS}" -ldflags="${LD_FLAGS}" \
2424
-o ${GOPATH}/bin/sentinelnode main.go
2525

26+
.PHONY: build-image
27+
build-image:
28+
@docker build --compress --file Dockerfile --force-rm --no-cache --tag sentinel-dvpn-node .
29+
2630
.PHONY: go-lint
2731
go-lint:
2832
@golangci-lint run --fix

0 commit comments

Comments
 (0)