feat(docker): test a container to check that it is still working (#346)

This commit is contained in:
Bo-Yi Wu
2018-03-17 23:07:38 +08:00
committed by GitHub
parent 86630e0fc7
commit b3bdd9b79e
7 changed files with 44 additions and 0 deletions

View File

@@ -10,4 +10,8 @@ LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>"
ADD release/linux/amd64/gorush /bin/
EXPOSE 8088 9000
HEALTHCHECK --start-period=2s --interval=10s --timeout=5s \
CMD ["/bin/gorush", "--ping"]
ENTRYPOINT ["/bin/gorush"]