diff --git a/Dockerfile b/Dockerfile index 3cdf577..8469612 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,8 @@ ENV BIND_ADDRESS=:4050 \ DATABASE_URL=/data/go-neb.db?_busy_timeout=5000 \ 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