mirror of
https://github.com/minio/minio.git
synced 2025-01-25 21:53:16 -05:00
makefile: Fix docker image
This commit is contained in:
parent
62e4d0d74b
commit
c22eb6d2c5
4
Makefile
4
Makefile
@ -70,10 +70,12 @@ pkg-remove:
|
||||
install: gomake-all
|
||||
|
||||
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)
|
||||
@GO15VENDOREXPERIMENT=1 go build --ldflags $(DOCKER_LDFLAGS) -o minio.dockerimage
|
||||
@mkdir -p export
|
||||
@docker build --rm --tag=minio:$(TAG) .
|
||||
@sudo docker build --rm --tag=minio/minio:$(TAG) .
|
||||
@rmdir export
|
||||
@rm minio.dockerimage
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user