Skip to content

Commit e9c77aa

Browse files
committed
feat: replace curl with localhealth
1 parent 2c1d0cc commit e9c77aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch.dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# :: FOREIGN IMAGES
1515
FROM 11notes/distroless AS distroless
16-
FROM 11notes/distroless:curl AS distroless-curl
16+
FROM 11notes/distroless:localhealth AS distroless-localhealth
1717
FROM 11notes/util:bin AS util-bin
1818

1919
# ╔═════════════════════════════════════════════════════╗
@@ -76,7 +76,7 @@
7676

7777
# :: multi-stage
7878
COPY --from=distroless / /
79-
COPY --from=distroless-curl / /
79+
COPY --from=distroless-localhealth / /
8080
COPY --from=build /distroless/ /
8181
COPY --from=file-system --chown=${APP_UID}:${APP_GID} /distroless/ /
8282

@@ -85,7 +85,7 @@
8585

8686
# :: Monitor
8787
HEALTHCHECK --interval=5s --timeout=2s --start-period=5s \
88-
CMD ["/usr/local/bin/curl", "-kILs", "--fail", "-o", "/dev/null", "http://localhost:8080/ping"]
88+
CMD ["/usr/local/bin/localhealth", "http://127.0.0.1:8080/ping", "-I"]
8989

9090
# :: EXECUTE
9191
USER ${APP_UID}:${APP_GID}

0 commit comments

Comments
 (0)