mirror of https://github.com/statping/statping
heroku docker
parent
4dadd14128
commit
83a9044015
|
@ -20,7 +20,7 @@ MAINTAINER "Hunter Long (https://github.com/hunterlong)"
|
|||
ARG VERSION
|
||||
ENV IS_DOCKER=true
|
||||
ENV STATPING_DIR=/app
|
||||
|
||||
ENV PORT=8080
|
||||
RUN apk --no-cache add curl jq
|
||||
|
||||
COPY --from=base /usr/local/bin/sass /usr/local/bin/sass
|
||||
|
@ -28,8 +28,8 @@ COPY --from=base /go/bin/statping /usr/local/bin/statping
|
|||
|
||||
WORKDIR /app
|
||||
VOLUME /app
|
||||
EXPOSE 8080
|
||||
EXPOSE $PORT
|
||||
|
||||
HEALTHCHECK --interval=5s --timeout=5s --retries=5 CMD curl -s "http://localhost:8080/health" | jq -r -e ".online==true"
|
||||
|
||||
CMD ["statping"]
|
||||
CMD ["statping", "--port", "$PORT"]
|
||||
|
|
14
heroku.yml
14
heroku.yml
|
@ -1,13 +1,3 @@
|
|||
setup:
|
||||
config:
|
||||
GOVERSION: go1.11
|
||||
build:
|
||||
languages:
|
||||
- go
|
||||
pre:
|
||||
- export PATH=$GOPATH/bin:$PATH
|
||||
- go get github.com/GeertJohan/go.rice
|
||||
- go get github.com/GeertJohan/go.rice/rice
|
||||
- cd $GOPATH/src/github.com/hunterlong/statping/source && rice embed-go
|
||||
run:
|
||||
web: cmd --port $PORT
|
||||
docker:
|
||||
web: Dockerfile
|
Loading…
Reference in New Issue