From 0ffca9560460a640b763c2a4cabdd3c4a420b6ca Mon Sep 17 00:00:00 2001 From: Viren070 Date: Fri, 13 Jun 2025 20:02:16 +0100 Subject: [PATCH] fix: update Dockerfile to use default port fallback for healthcheck and expose --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 70a6a5d3..e4312423 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,8 +51,8 @@ COPY --from=builder /build/resources ./resources COPY --from=builder /build/node_modules ./node_modules HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://localhost:$PORT/api/v1/status || exit 1 + CMD wget --no-verbose --tries=1 --spider http://localhost:${PORT:-3000}/api/v1/status || exit 1 -EXPOSE $PORT +EXPOSE ${PORT:-3000} ENTRYPOINT ["npm", "run", "start"] \ No newline at end of file