pull/10/head
Hunter Long 2018-06-24 01:18:59 -07:00
parent 9ad7519cd9
commit 04e3a4239c
3 changed files with 12 additions and 11 deletions

View File

@ -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"]
VOLUME /app
RUN statup version
EXPOSE 8080
ENTRYPOINT statup

View File

@ -3,6 +3,6 @@
{{ if .Core.Footer }}
{{ safe .Core.Footer }}
{{ end }}
<a href="https://statup.io" target="_blank">Statup made with ❤️</a> | <a href="/dashboard">Dashboard</a>
<a href="https://statup.io" target="_blank">Statup made with ❤️ {{ VERSION }}</a> | <a href="/dashboard">Dashboard</a>
</div>
{{ end }}

View File

@ -167,7 +167,7 @@
<div class="col-12">
<h3>Last Response</h3>
<textarea class="form-control" readonly>{{ .LastResponse }}</textarea>
<textarea rows="8" class="form-control" readonly>{{ .LastResponse }}</textarea>
<div class="form-group row mt-2">
<label for="last_status_code" class="col-sm-3 col-form-label">Status Code</label>