From 112729386357dd7d553c89c3d583d1596c4ca20b Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Fri, 20 Sep 2019 16:19:56 -0700 Subject: [PATCH] Add a basic .dockerignore file to reduce docker context in `make docker` (#8282) - Add useful default tag to dev docker image build using `make docker` --- .dockerignore | 2 ++ Makefile | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..f4b11987f --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git +.github diff --git a/Makefile b/Makefile index 5ad71d63c..c2137af53 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,9 @@ LDFLAGS := $(shell go run buildscripts/gen-ldflags.go) GOARCH := $(shell go env GOARCH) GOOS := $(shell go env GOOS) -TAG ?= $(USER) +VERSION ?= $(shell git describe --tags) +TAG ?= "minio/minio:$(VERSION)" + BUILD_LDFLAGS := '$(LDFLAGS)' all: build