Skip to content

Missing docker HealthCheck #176

@Masterwow3

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"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions