Skip to content

Commit 654e25c

Browse files
committed
Add docker healthcheck
1 parent acbc402 commit 654e25c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ RUN npm prune --production
3030

3131
FROM base AS runner
3232

33+
RUN apk add curl --no-cache
34+
35+
HEALTHCHECK CMD curl --fail http://localhost:5000/ || exit 1
36+
3337
WORKDIR /app
3438

3539
COPY . .

0 commit comments

Comments
 (0)