Files
floci/Dockerfile.native-package
T
Matej Šnuderl 8149c21c9c feat: add HEALTHCHECK to all Dockerfiles (#328)
Adds Docker HEALTHCHECK instruction to all four Dockerfiles so
orchestration tools can detect readiness. Installs curl where needed
and uses the existing /_floci/health endpoint.
2026-04-11 09:46:23 -05:00

27 lines
557 B
Docker

FROM registry.access.redhat.com/ubi9-minimal:9.7
ARG VERSION=latest
ARG BINARY_FILE=application
ENV FLOCI_VERSION=${VERSION}
WORKDIR /app
RUN mkdir -p /app/data \
&& chown -R 1001:root /app \
&& chmod -R g+rwX /app
VOLUME /app/data
COPY --chown=1001:root target/*.properties target/*.so /app/
COPY --chown=1001:root target/*-runner /app/application
EXPOSE 4566
HEALTHCHECK --interval=5s --timeout=3s --retries=5 \
CMD curl -f http://localhost:4566/_floci/health || exit 1
USER 1001
CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]