From 5012872895a69040a761a5dec89f72e6c87adbd0 Mon Sep 17 00:00:00 2001 From: Hendrik Schlehlein Date: Thu, 31 Jan 2019 16:28:38 +0000 Subject: [PATCH] dockerfile update #2 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 95ac34b..24c91ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ COPY . . RUN go get -d -v # Build the binary. -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags="-w -s" -o /go/bin/main +RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /go/bin/main ############################ # STEP 2 build a small image