From 15eb1ea46b7a97424caf0b1c6162ece189d56895 Mon Sep 17 00:00:00 2001 From: "Nomi Nonsense (Nonszy)" Date: Sat, 22 Nov 2025 11:45:24 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 79be537..e7d56fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN yarn build FROM node:20-alpine AS runner -RUN apk add --no-cache curl +RUN apk add --no-cache curl iproute2 WORKDIR /app @@ -32,6 +32,8 @@ COPY --from=builder /app/.next/static ./.next/static EXPOSE 3000 +RUN ss -tuln + HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \ CMD curl -f http://localhost:3000 || exit 1