From b1295f432916006068e8d0d030caf935271b46ef Mon Sep 17 00:00:00 2001 From: michael1986 Date: Fri, 28 Nov 2025 02:16:49 +0100 Subject: [PATCH] all --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c52547c..1bfb12c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,13 +5,16 @@ COPY pom.xml . COPY src ./src RUN mvn clean package -DskipTests -# Runtime stage -FROM eclipse-temurin:11-jre +# Runtime stage - using headless JRE to reduce size +FROM eclipse-temurin:11-jre-jammy WORKDIR /app -# Install OpenCV native libraries +# Install minimal OpenCV runtime libraries (not the full dev package) RUN apt-get update && \ - apt-get install -y libopencv-dev && \ + apt-get install -y --no-install-recommends \ + libopencv-core4.5d \ + libopencv-imgcodecs4.5d \ + libopencv-dnn4.5d && \ rm -rf /var/lib/apt/lists/* # Copy the JAR file