From 2af039dcfc083bacccd7efff38b5c7ed82ca8c4b Mon Sep 17 00:00:00 2001 From: Cedric Meury Date: Fri, 27 Apr 2018 11:20:18 +0200 Subject: [PATCH] don't use gox for single build --- Dockerfile | 4 ---- Makefile | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 87f84778..54fbd16d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,6 @@ FROM golang:1.10.1-alpine3.7 as builder RUN apk add --no-cache make git WORKDIR /go/src/github.com/roboll/helmfile/ - -COPY Makefile /go/src/github.com/roboll/helmfile/Makefile -RUN make tools - COPY . /go/src/github.com/roboll/helmfile/ RUN make static-linux diff --git a/Makefile b/Makefile index c62bb7e0..a940657d 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ cross: .PHONY: cross static-linux: - env CGO_ENABLED=0 gox -osarch="linux/amd64" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" -ldflags '-X main.Version=${TAG}' ${TARGETS} + env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o "dist/helmfile_linux_amd64" -ldflags '-X main.Version=${TAG}' ${TARGETS} .PHONY: linux clean: