Skip to content

Commit 5e46608

Browse files
cooperajjkuri
authored andcommitted
feat(docker): Added healthcheck to dockerfile
1 parent 44a85a9 commit 5e46608

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
@@ -46,7 +46,7 @@ LABEL maintainer="Jan Kuri <jan@bleenco.com>" \
4646

4747
WORKDIR /app
4848

49-
RUN apk --no-cache add tini sqlite git
49+
RUN apk --no-cache add tini sqlite git wget
5050

5151
COPY --from=base /usr/bin/node /usr/bin/
5252
COPY --from=base /usr/lib/libgcc* /usr/lib/libstdc* /usr/lib/
@@ -57,6 +57,9 @@ COPY --from=build /app/prod_node_modules ./node_modules
5757
COPY --from=build /app/dist ./dist
5858
COPY --from=build /app/src/files ./src/files
5959

60+
HEALTHCHECK --interval=10s --timeout=2s --start-period=20s \
61+
CMD wget -q -O- http://localhost:6500/status || exit 1
62+
6063
EXPOSE 6500
6164

6265
ENTRYPOINT ["/sbin/tini", "--"]

0 commit comments

Comments
 (0)