diff --git a/Dockerfile b/Dockerfile index b9abcd20cd..8e861e532b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ RUN mvn install -DskipTests -Pdev FROM eclipse-temurin:21.0.4_7-jre AS app -RUN DEBIAN_FRONTEND=noninteractive apt-get update -q && DEBIAN_FRONTEND=noninteractive apt-get install -qq -y tini; +RUN DEBIAN_FRONTEND=noninteractive apt-get update -q && DEBIAN_FRONTEND=noninteractive apt-get install -qq -y tini && rm -rf /var/lib/apt/lists/* COPY --from=api-builder /opt/openbas-build/openbas/openbas-api/target/openbas-api.jar ./ ENTRYPOINT ["/usr/bin/tini", "--"] diff --git a/Dockerfile_circleci b/Dockerfile_circleci index fdd1454da8..6bd3ec29a6 100644 --- a/Dockerfile_circleci +++ b/Dockerfile_circleci @@ -14,7 +14,7 @@ RUN ln -s /usr/bin/dpkg-split /usr/sbin/dpkg-split RUN ln -s /usr/bin/dpkg-deb /usr/sbin/dpkg-deb RUN ln -s /bin/rm /usr/sbin/rm RUN ln -s /bin/tar /usr/sbin/tar -RUN DEBIAN_FRONTEND=noninteractive apt-get update -q && DEBIAN_FRONTEND=noninteractive apt-get install -qq -y tini; +RUN DEBIAN_FRONTEND=noninteractive apt-get update -q && DEBIAN_FRONTEND=noninteractive apt-get install -qq -y tini && rm -rf /var/lib/apt/lists/* COPY --from=api-builder /opt/openbas-build/openbas/openbas-api/target/openbas-api.jar ./ ENTRYPOINT ["/usr/bin/tini", "--"] diff --git a/Dockerfile_ga b/Dockerfile_ga index fb705d21a1..c372e04269 100644 --- a/Dockerfile_ga +++ b/Dockerfile_ga @@ -1,7 +1,7 @@ FROM openjdk:21-jdk-slim AS app WORKDIR /opt -RUN apt update && apt install -y tini git --no-install-recommends +RUN apt update && apt install -y tini git --no-install-recommends && rm -rf /var/lib/apt/lists/* COPY openbas-build ./ ENTRYPOINT ["/usr/bin/tini", "--"]