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