diff --git a/Dockerfile b/Dockerfile index 10c5f177..8621104e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,13 @@ -FROM golang:1.10.3 as builder -WORKDIR /go/src/github.com/hunterlong/statup -COPY . . -RUN go get -d -v -RUN CGO_ENABLED=0 GOOS=linux go build -a -o statup . - FROM alpine:latest + +ENV VERSION=v0.21 + RUN apk --no-cache add ca-certificates +RUN wget https://github.com/hunterlong/statup/releases/download/$VERSION/statup-alpine && \ + chmod +x statup-alpine && \ + mv statup-alpine /usr/local/bin/statup WORKDIR /app -COPY --from=builder /go/src/github.com/hunterlong/statup /app/ -RUN chmod +x /app/statup -CMD ["./statup", "version"] \ No newline at end of file +VOLUME /app +RUN statup version +EXPOSE 8080 +ENTRYPOINT statup \ No newline at end of file diff --git a/html/tmpl/footer.html b/html/tmpl/footer.html index e52eb558..eb6566f5 100644 --- a/html/tmpl/footer.html +++ b/html/tmpl/footer.html @@ -3,6 +3,6 @@ {{ if .Core.Footer }} {{ safe .Core.Footer }} {{ end }} - Statup made with ❤️ | Dashboard + Statup made with ❤️ {{ VERSION }} | Dashboard {{ end }} \ No newline at end of file diff --git a/html/tmpl/service.html b/html/tmpl/service.html index 10570ca5..0b989a71 100644 --- a/html/tmpl/service.html +++ b/html/tmpl/service.html @@ -167,7 +167,7 @@

Last Response

- +