diff --git a/.travis.yml b/.travis.yml index 3a364865..e6616d57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ services: - mongodb env: - - VERSION=0.12 + - VERSION=0.13 matrix: allow_failures: diff --git a/Dockerfile b/Dockerfile index 4bc33b61..ab64903b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,12 @@ -FROM golang:alpine as builder +FROM alpine -RUN apk update && apk add git +RUN apk add --no-cache libc6-compat + +ENV VERSION="v0.12" -COPY . $GOPATH/src/github.com/hunterlong/statup/ -WORKDIR $GOPATH/src/github.com/hunterlong/statup/ -RUN go get github.com/GeertJohan/go.rice/rice -RUN go get -d -v -RUN rice embed-go -RUN go install WORKDIR /app -VOLUME /app +RUN wget -q https://github.com/hunterlong/statup/releases/download/$VERSION/statup-linux-x64 +RUN chmod +x statup-linux-x64 && mv statup-linux-x64 /usr/local/bin/statup EXPOSE 8080