This commit is contained in:
Tour
2025-12-05 08:59:23 +01:00
parent 36a1edfecf
commit a06434642c
2 changed files with 6 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ RUN mvn package -DskipTests -Dquarkus.package.jar.type=uber-jar -Dquarkus.packag
FROM eclipse-temurin:25-jre FROM eclipse-temurin:25-jre
WORKDIR /app WORKDIR /app
# Install libstdc++ and other OpenCV dependencies + wget for health checks # Install dependencies + wget for health checks
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
libstdc++6 \ libstdc++6 \
@@ -24,6 +24,10 @@ RUN apt-get update && \
# Create user (Debian syntax) # Create user (Debian syntax)
RUN groupadd -r quarkus && useradd -r -g quarkus quarkus RUN groupadd -r quarkus && useradd -r -g quarkus quarkus
# Create the data directory and set ownership BEFORE switching user
RUN mkdir -p /mnt/okcomputer/output && \
chown -R quarkus:quarkus /mnt/okcomputer/output
# Copy the built jar with correct pattern # Copy the built jar with correct pattern
COPY --from=builder --chown=quarkus:quarkus /app/target/auctiora-*.jar app.jar COPY --from=builder --chown=quarkus:quarkus /app/target/auctiora-*.jar app.jar

View File

@@ -39,7 +39,7 @@ services:
- "traefik.http.services.auctiora.loadbalancer.server.port=8081" - "traefik.http.services.auctiora.loadbalancer.server.port=8081"
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8081/health/live"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8081/q/health/live"]
interval: 30s interval: 30s
timeout: 3s timeout: 3s
retries: 3 retries: 3