From 536a4f0e1234d8329d11cdd3c375a469fa920802 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Wed, 5 Feb 2020 22:45:26 +0300 Subject: [PATCH] Simplify alpine Dockerfile --- build/Dockerfile.alpine | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/build/Dockerfile.alpine b/build/Dockerfile.alpine index a895a1b3..9973c39e 100644 --- a/build/Dockerfile.alpine +++ b/build/Dockerfile.alpine @@ -1,10 +1,9 @@ FROM golang:1.13-alpine -# required to support cgo -RUN apk --no-cache add gcc musl-dev - -# needed most times for `go get`, etc. See https://github.com/docker-library/golang/issues/80 -RUN apk add --no-cache git mercurial +# gcc is required to support cgo; +# git and mercurial are needed most times for go get`, etc. +# See https://github.com/docker-library/golang/issues/80 +RUN apk --no-cache add gcc musl-dev git mercurial # don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume COPY golangci-lint /usr/bin/