-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker): Added healthcheck to dockerfile
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ LABEL maintainer="Jan Kuri <[email protected]>" \ | |
|
||
WORKDIR /app | ||
|
||
RUN apk --no-cache add tini sqlite git | ||
RUN apk --no-cache add tini sqlite git wget | ||
|
||
COPY --from=base /usr/bin/node /usr/bin/ | ||
COPY --from=base /usr/lib/libgcc* /usr/lib/libstdc* /usr/lib/ | ||
|
@@ -57,6 +57,9 @@ COPY --from=build /app/prod_node_modules ./node_modules | |
COPY --from=build /app/dist ./dist | ||
COPY --from=build /app/src/files ./src/files | ||
|
||
HEALTHCHECK --interval=10s --timeout=2s --start-period=20s \ | ||
CMD wget -q -O- http://localhost:6500/status || exit 1 | ||
|
||
EXPOSE 6500 | ||
|
||
ENTRYPOINT ["/sbin/tini", "--"] | ||
|