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.
31 lines
675 B
Docker
31 lines
675 B
Docker
# Stage 1: Build
|
|
FROM eclipse-temurin:25-jdk AS build
|
|
WORKDIR /build
|
|
|
|
RUN apt-get update && apt-get install -y maven && rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY pom.xml .
|
|
RUN mvn dependency:go-offline -q
|
|
|
|
COPY src/ src/
|
|
RUN mvn clean package -DskipTests -q
|
|
|
|
# Stage 2: Runtime
|
|
FROM eclipse-temurin:25-jre-alpine
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /build/target/quarkus-app/ quarkus-app/
|
|
|
|
RUN mkdir -p /app/data
|
|
VOLUME /app/data
|
|
|
|
EXPOSE 4566 6379-6399
|
|
|
|
HEALTHCHECK --interval=5s --timeout=3s --retries=5 \
|
|
CMD wget -q --spider http://localhost:4566/_floci/health || exit 1
|
|
|
|
ARG VERSION=latest
|
|
ENV FLOCI_VERSION=${VERSION}
|
|
|
|
ENTRYPOINT ["java", "-jar", "quarkus-app/quarkus-run.jar"]
|