Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Dockerfile: add HEALTHCHECK #371

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ 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/ }' || exit 1

COPY --from=builder /tmp/go-neb/go-neb /usr/local/bin/go-neb
# Copy libolm.so
Expand Down