Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion common/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ FROM $BUILD_FROM as base
ENV LANG C.UTF-8
ARG BUILD_VERSION

RUN apk add --no-cache socat tini nodejs eudev
RUN apk add --no-cache socat tini nodejs eudev && \
# Validation to confirm that curl is installed in the base image.
curl --version || (echo "curl missing" && exit 1)

# Dependencies and build
FROM base as dependencies_and_build
Expand Down Expand Up @@ -49,4 +51,7 @@ COPY --from=dependencies_and_build /app/package.json /app/LICENSE /app/index.js

ENV NODE_ENV production

HEALTHCHECK --interval=1m --timeout=3s \
CMD curl -f http://localhost:8099/

ENTRYPOINT [ "/sbin/tini", "--", "/docker-entrypoint.sh"]