Merge pull request #986 from harshavardhana/fix-makefile

makefile: Fix docker image
master
Harshavardhana 9 years ago
commit f7029fc6f1
  1. 4
      Makefile

@ -70,10 +70,12 @@ pkg-remove:
install: gomake-all install: gomake-all
dockerimage: install dockerimage: install
@echo "Checking if docker is installed."
@if [ ! -e /usr/bin/docker ]; then echo "Docker not installed, cannot build docker image. Please install 'sudo apt-get install docker.io'" && exit 1; fi
@echo "Building docker image:" minio:$(TAG) @echo "Building docker image:" minio:$(TAG)
@GO15VENDOREXPERIMENT=1 go build --ldflags $(DOCKER_LDFLAGS) -o minio.dockerimage @GO15VENDOREXPERIMENT=1 go build --ldflags $(DOCKER_LDFLAGS) -o minio.dockerimage
@mkdir -p export @mkdir -p export
@docker build --rm --tag=minio:$(TAG) . @sudo docker build --rm --tag=minio/minio:$(TAG) .
@rmdir export @rmdir export
@rm minio.dockerimage @rm minio.dockerimage

Loading…
Cancel
Save