Skip to content

armgit / floci

Public Imported from GitHub
0

Light, fluffy, and always free - The AWS Local Emulator alternative

fix(docker): replace bash /dev/tcp HEALTHCHECK with busybox wget for Alpine runtime (#625)

Kenshin Okinakaa58f541e1722
diff --git a/Dockerfile b/Dockerfile
index 1fa8020f2b..e0e2a82585 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -22,7 +22,7 @@ VOLUME /app/data
EXPOSE 4566 6379-6399
HEALTHCHECK --interval=5s --timeout=3s --retries=5 \
- CMD bash -c 'echo -e "GET /_floci/health HTTP/1.0\r\nHost: localhost\r\n\r\n" > /dev/tcp/localhost/4566' || exit 1
+ CMD wget -q --spider http://localhost:4566/_floci/health || exit 1
ARG VERSION=latest
ENV FLOCI_VERSION=${VERSION}