Skip to content

Commit 4806787

Browse files
committed
Healthcheck
1 parent 51e5291 commit 4806787

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ WORKDIR /app
33

44
FROM base AS deps
55
RUN apk add --no-cache libc6-compat
6-
COPY package.json bun.lock .
6+
COPY package.json bun.lock ./
77
RUN bun install --frozen-lockfile
88

99
FROM base AS runner
@@ -13,3 +13,6 @@ COPY . .
1313

1414
USER bun
1515
ENTRYPOINT [ "bun", "run", "start" ]
16+
17+
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
18+
CMD pgrep -f "bun" || exit 1

0 commit comments

Comments
 (0)