Fix healthcheck on supervisor debug builds

We were relying on wget which was not brought into the image, so we
switch this to curl, which is present.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2019-12-18 14:36:05 +00:00
parent e14b07390e
commit 4ff54f45c1
No known key found for this signature in database
GPG Key ID: 49690ED87032539F

View File

@ -80,7 +80,7 @@ COPY avahi-daemon.conf /etc/avahi/avahi-daemon.conf
VOLUME /data
HEALTHCHECK --interval=5m --start-period=1m --timeout=30s --retries=3 \
CMD wget -qO- http://127.0.0.1:${LISTEN_PORT:-48484}/v1/healthy || exit 1
CMD curl --fail http://127.0.0.1:${LISTEN_PORT:-48484}/v1/healthy
RUN [ "cross-build-end" ]