mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
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.
27 lines
557 B
Docker
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"]
|