This commit is contained in:
Tour
2025-12-05 08:49:59 +01:00
parent 41de6c1e8a
commit 243573d4b2

View File

@@ -9,12 +9,19 @@ COPY src ./src
# Updated with both properties to avoid the warning # Updated with both properties to avoid the warning
RUN mvn package -DskipTests -Dquarkus.package.jar.type=uber-jar -Dquarkus.package.jar.enabled=true RUN mvn package -DskipTests -Dquarkus.package.jar.type=uber-jar -Dquarkus.package.jar.enabled=true
# Stage 2: Runtime # Stage 2: Runtime (DEBIAN-based for OpenCV native libs)
FROM eclipse-temurin:25-jre-alpine FROM eclipse-temurin:25-jre
WORKDIR /app WORKDIR /app
# Create user (Alpine syntax) # Install libstdc++ and other OpenCV dependencies
RUN addgroup -S quarkus && adduser -S quarkus -G quarkus RUN apt-get update && \
apt-get install -y --no-install-recommends \
libstdc++6 \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
# Create user (Debian syntax)
RUN groupadd -r quarkus && useradd -r -g quarkus quarkus
# 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