diff --git a/Dockerfile b/Dockerfile index 206391e..7375b03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,10 @@ -FROM golang:1.10 as builder +FROM golang:1.10.3 as builder WORKDIR /go/src/github.com/rjeczalik/refmt COPY . . -RUN CGO_ENABLED=0 GOOS=linux go build +RUN curl -sL -o /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 && \ + chmod +x /usr/local/bin/dep && dep ensure && \ + CGO_ENABLED=0 GOOS=linux go build FROM scratch COPY --from=builder /go/src/github.com/rjeczalik/refmt/refmt /refmt