mirror of https://github.com/statping/statping
building
parent
9ad7519cd9
commit
04e3a4239c
19
Dockerfile
19
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
|
FROM alpine:latest
|
||||||
|
|
||||||
|
ENV VERSION=v0.21
|
||||||
|
|
||||||
RUN apk --no-cache add ca-certificates
|
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
|
WORKDIR /app
|
||||||
COPY --from=builder /go/src/github.com/hunterlong/statup /app/
|
VOLUME /app
|
||||||
RUN chmod +x /app/statup
|
RUN statup version
|
||||||
CMD ["./statup", "version"]
|
EXPOSE 8080
|
||||||
|
ENTRYPOINT statup
|
|
@ -3,6 +3,6 @@
|
||||||
{{ if .Core.Footer }}
|
{{ if .Core.Footer }}
|
||||||
{{ safe .Core.Footer }}
|
{{ safe .Core.Footer }}
|
||||||
{{ end }}
|
{{ 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>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -167,7 +167,7 @@
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<h3>Last Response</h3>
|
<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">
|
<div class="form-group row mt-2">
|
||||||
<label for="last_status_code" class="col-sm-3 col-form-label">Status Code</label>
|
<label for="last_status_code" class="col-sm-3 col-form-label">Status Code</label>
|
||||||
|
|
Loading…
Reference in New Issue