We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461758b commit 0c2c6c4Copy full SHA for 0c2c6c4
common/Dockerfile
@@ -4,7 +4,9 @@ FROM $BUILD_FROM as base
4
ENV LANG C.UTF-8
5
ARG BUILD_VERSION
6
7
-RUN apk add --no-cache socat tini nodejs eudev
+RUN apk add --no-cache socat tini nodejs eudev && \
8
+ # Validation to confirm that curl is installed in the base image.
9
+ curl --version || (echo "curl missing" && exit 1)
10
11
# Dependencies and build
12
FROM base as dependencies_and_build
@@ -49,4 +51,7 @@ COPY --from=dependencies_and_build /app/package.json /app/LICENSE /app/index.js
49
51
50
52
ENV NODE_ENV production
53
54
+HEALTHCHECK --interval=1m --timeout=3s \
55
+ CMD curl -f http://localhost:8099/
56
+
57
ENTRYPOINT [ "/sbin/tini", "--", "/docker-entrypoint.sh"]
0 commit comments