From 96c7418ab4461d41f301dc27db1dc6980bf91d29 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Fri, 15 Jun 2018 14:13:19 -0700 Subject: [PATCH] version update - dockerfile --- .travis.yml | 2 +- Dockerfile | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) 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