Simplify alpine Dockerfile
This commit is contained in:
parent
b7bff48413
commit
536a4f0e12
@ -1,10 +1,9 @@
|
|||||||
FROM golang:1.13-alpine
|
FROM golang:1.13-alpine
|
||||||
|
|
||||||
# required to support cgo
|
# gcc is required to support cgo;
|
||||||
RUN apk --no-cache add gcc musl-dev
|
# git and mercurial are needed most times for go get`, etc.
|
||||||
|
# See https://github.com/docker-library/golang/issues/80
|
||||||
# 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
|
||||||
RUN apk add --no-cache git mercurial
|
|
||||||
|
|
||||||
# don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume
|
# don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume
|
||||||
COPY golangci-lint /usr/bin/
|
COPY golangci-lint /usr/bin/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user