Skip to content

Commit

Permalink
refmt: fetch deps in docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeczalik committed Jun 24, 2018
1 parent ce6b651 commit ce0d665
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ce0d665

Please sign in to comment.