From 3a806e9c7823108cd824106d2d0e573a796626fa Mon Sep 17 00:00:00 2001 From: Denis Isaev Date: Sat, 28 Jul 2018 23:49:55 +0300 Subject: [PATCH] add gcc to dockerfile: cgo doesn't work without it --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9931954f..4a01bc8c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,6 @@ -FROM scratch -COPY golangci-lint / -ENTRYPOINT ["/golangci-lint"] \ No newline at end of file +FROM golang:1.10 + +RUN apt-get update && apt-get install -y gcc + +COPY golangci-lint $GOPATH/bin/ +ENTRYPOINT ["golangci-lint"]