mirror of https://github.com/statping/statping
parent
9b91a9133d
commit
96c7418ab4
|
@ -17,7 +17,7 @@ services:
|
||||||
- mongodb
|
- mongodb
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- VERSION=0.12
|
- VERSION=0.13
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
|
|
15
Dockerfile
15
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
|
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
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue