Skip to content

Commit

Permalink
Add dep's gopkg files
Browse files Browse the repository at this point in the history
Change documentation to reflect dependency with dep
Update Dockerfile with relevent changes to download and use dep
  • Loading branch information
Hagai Barel committed Oct 14, 2018
1 parent eef4651 commit 0e87fd0
Show file tree
Hide file tree
Showing 6 changed files with 641 additions and 336 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
FROM golang:1.10.3-alpine as builder
WORKDIR /go/src/github.com/maorfr/orca/
COPY . .

ARG DEP_VERSION=v0.5.0

RUN apk --no-cache add git \
&& go get -u github.com/Masterminds/glide \
&& glide install --strip-vendor \
&& wget -q -O $GOPATH/bin/dep https://github.com/golang/dep/releases/download/${DEP_VERSION}/dep-linux-amd64 \
&& chmod +x $GOPATH/bin/dep \
&& dep ensure \
&& for f in $(find test -type f -name "*.go"); do go test -v $f; done \
&& CGO_ENABLED=0 GOOS=linux go build -o orca cmd/orca.go

Expand Down
Loading

0 comments on commit 0e87fd0

Please sign in to comment.