Skip to content

Commit

Permalink
[docker] clean up temporary apt list files in Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Oct 18, 2024
1 parent b0a5e1a commit e26604c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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", "--"]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile_circleci
Original file line number Diff line number Diff line change
Expand Up @@ -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", "--"]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile_ga
Original file line number Diff line number Diff line change
@@ -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", "--"]
Expand Down

0 comments on commit e26604c

Please sign in to comment.