all
This commit is contained in:
11
Dockerfile
11
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
|
||||
|
||||
Reference in New Issue
Block a user