FROM golang:latest

##
## -- This dockerfile is used in `make test` which you can use to run the tests and
##    gometalinter locally before pushing a commit
##
RUN go get -u github.com/alecthomas/gometalinter && gometalinter --install

RUN mkdir -p /go/src/code.justin.tv/extensions/orchestration
WORKDIR /go/src/code.justin.tv/extensions/orchestration

ADD . .

RUN go test ./...
RUN cd cmd/orchestrator && go install ./...
RUN gometalinter --disable gosec --disable gas --disable gocyclo --disable dupl --disable gotype --disable aligncheck --disable maligned --enable misspell --deadline 5m
