Bump to golang-1.10 and update docker base image
@@ -51,7 +51,7 @@ endif
IMAGE := $(REGISTRY)/$(BIN)-$(ARCH)
-BUILD_IMAGE ?= golang:1.7-alpine
+BUILD_IMAGE ?= golang:1.10-alpine
VERSION := $(shell git describe --always --dirty)
@@ -87,6 +87,7 @@ bin/$(ARCH)/$(BIN): build-dirs
-v $$(pwd)/bin/$(ARCH):/go/bin \
-v $$(pwd)/bin/$(ARCH):/go/bin/$$(go env GOOS)_$(ARCH) \
-v $$(pwd)/.go/std/$(ARCH):/usr/local/go/pkg/linux_$(ARCH)_static \
+ -v $$(pwd)/.go/cache:/.cache/go-build \
-w /go/src/$(PKG) \
$(BUILD_IMAGE) \
/bin/sh -c " \
@@ -130,6 +131,7 @@ test: build-dirs
-v $$(pwd):/go/src/$(PKG) \
-v $$(pwd)/bin/$(ARCH):/go/bin \
-v $$(pwd)/.go/std/$(ARCH):/usr/local/go/pkg/linux_$(ARCH)_static \
+ -v $$(pwd)/.go/cache:/.cache/go-build \
-w /go/src/$(PKG) \
$(BUILD_IMAGE) \
/bin/sh -c " \
@@ -138,7 +140,7 @@ test: build-dirs
build-dirs:
@mkdir -p bin/$(ARCH)
- @mkdir -p .go/src/$(PKG) .go/pkg .go/bin .go/std/$(ARCH)
+ @mkdir -p .go/src/$(PKG) .go/pkg .go/bin .go/std/$(ARCH) .go/cache
clean: container-clean bin-clean
