Skip to content

Commit

Permalink
Merge pull request #279 from mkatychev/patch/dockerfile
Browse files Browse the repository at this point in the history
symlinked /mockery to /usr/local/bin
  • Loading branch information
LandonTClipp authored Jun 7, 2020
2 parents 1ac9574 + 8b9d8ea commit 1cc3837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ RUN cd /mockery && go install ./...

FROM golang:1.14-alpine

COPY --from=builder /go/bin/mockery /
COPY --from=builder /go/bin/mockery /usr/local/bin

# Explicitly set a writable cache path when running --user=$(id -u):$(id -g)
# see: https://github.com/golang/go/issues/26280#issuecomment-445294378
ENV GOCACHE /tmp/.cache

ENTRYPOINT ["/mockery"]
ENTRYPOINT ["/usr/local/bin/mockery"]

0 comments on commit 1cc3837

Please sign in to comment.