version update - dockerfile

pull/10/head v0.13
Hunter Long 2018-06-15 14:13:19 -07:00
parent 9b91a9133d
commit 96c7418ab4
2 changed files with 7 additions and 10 deletions

View File

@ -17,7 +17,7 @@ services:
- mongodb
env:
- VERSION=0.12
- VERSION=0.13
matrix:
allow_failures:

View File

@ -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