Browse Source

Dockerfile: add HEALTHCHECK

Add `wge`t based healthchecks. Don't want to add `curl` just for healthchecks and increase size of image by ~2.5 MB(Every penny counts) when you can achieve similar with alpine's built-in `wget` and `awk`.
pull/371/head
Pratik 3 years ago
committed by GitHub
parent
commit
6489c231fc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Dockerfile

2
Dockerfile

@ -25,6 +25,8 @@ ENV BIND_ADDRESS=:4050 \
UID=1337 \
GID=1337
HEALTHCHECK --interval=5s --timeout=3s CMD wget -qS -O /dev/null localhost${BIND_ADDRESS}/test | awk -F':' '$1 ~ / Status$/ { print $2 ~ /200 OK/ }'
COPY --from=builder /tmp/go-neb/go-neb /usr/local/bin/go-neb
# Copy libolm.so
COPY --from=builder /usr/local/lib/* /usr/local/lib/

Loading…
Cancel
Save