Skip to content

Commit 536a4f0

Browse files
committed
Simplify alpine Dockerfile
1 parent b7bff48 commit 536a4f0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

build/Dockerfile.alpine

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
FROM golang:1.13-alpine
22

3-
# required to support cgo
4-
RUN apk --no-cache add gcc musl-dev
5-
6-
# needed most times for `go get`, etc. See https://github.com/docker-library/golang/issues/80
7-
RUN apk add --no-cache git mercurial
3+
# gcc is required to support cgo;
4+
# git and mercurial are needed most times for go get`, etc.
5+
# See https://github.com/docker-library/golang/issues/80
6+
RUN apk --no-cache add gcc musl-dev git mercurial
87

98
# don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume
109
COPY golangci-lint /usr/bin/

0 commit comments

Comments
 (0)