Skip to content

Commit

Permalink
Fix Dockerfile
Browse files Browse the repository at this point in the history
It looks like the working directory of travis only has the actual
mockery binary, and not the repo itself. We probably want to figure out
how to cwd into the directory where the code lives (`$TRAVIS_BUILD_DIR`)
and build inside the container. For now this should work fine.
  • Loading branch information
LandonTClipp committed Jun 15, 2020
1 parent 6d66ac5 commit 108dd4b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
FROM golang:1.14-alpine as builder

COPY ./ /mockery
RUN cd /mockery && ls mockery && go install ./...

FROM golang:1.14-alpine

COPY --from=builder /go/bin/mockery /usr/local/bin
COPY 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
Expand Down

0 comments on commit 108dd4b

Please sign in to comment.