Skip to content

Missing docker HealthCheck #176

Description

@Masterwow3

Is: Currently the dockerfile does not contain a health check
Wish: Would it be possible to include a health check in the dockerfile?

My current workaround:

ARG BASE_IMAGE="hyperonym/ratus"

FROM alpine as builder
ADD https://github.com/moparisthebest/static-curl/releases/download/v8.7.1/curl-amd64 /curl
RUN chmod 700 /curl

FROM ${BASE_IMAGE}
COPY --from=builder /curl /curl

EXPOSE 80/tcp
HEALTHCHECK --interval=60s --timeout=10s --start-period=5s CMD ["/curl", "-sSf", "http://127.0.0.1/readyz"]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions