From 0616b98041c9531853598f3cc65b8a76323c4253 Mon Sep 17 00:00:00 2001 From: Luigi Dell'Aquila Date: Fri, 7 Jun 2019 09:21:36 +0200 Subject: [PATCH] Optimize images removing apt lists --- 2.1/Dockerfile | 2 ++ 2.2/x86_64/openjdk-slim/Dockerfile | 1 + 3.0-spatial/x86_64/openjdk-slim/Dockerfile | 1 + 3.0-tp3/x86_64/openjdk-slim/Dockerfile | 2 ++ 3.0/arm64v8/openjdk-slim/Dockerfile | 1 + 3.0/x86_64/openjdk-slim/Dockerfile | 1 + 6 files changed, 8 insertions(+) diff --git a/2.1/Dockerfile b/2.1/Dockerfile index 3c23618..19c070b 100644 --- a/2.1/Dockerfile +++ b/2.1/Dockerfile @@ -23,6 +23,8 @@ RUN mkdir /orientdb && \ && rm -rf /orientdb/databases/* +RUN rm -rf /var/lib/apt/lists/* + ENV PATH /orientdb/bin:$PATH VOLUME ["/orientdb/backup", "/orientdb/databases", "/orientdb/config"] diff --git a/2.2/x86_64/openjdk-slim/Dockerfile b/2.2/x86_64/openjdk-slim/Dockerfile index 1dfd53b..f2827ff 100644 --- a/2.2/x86_64/openjdk-slim/Dockerfile +++ b/2.2/x86_64/openjdk-slim/Dockerfile @@ -28,6 +28,7 @@ RUN mkdir /orientdb && \ && rm orientdb-community-$ORIENTDB_VERSION.tar.gz \ && rm -rf /orientdb/databases/* +RUN rm -rf /var/lib/apt/lists/* ENV PATH /orientdb/bin:$PATH diff --git a/3.0-spatial/x86_64/openjdk-slim/Dockerfile b/3.0-spatial/x86_64/openjdk-slim/Dockerfile index ed42d17..332937c 100644 --- a/3.0-spatial/x86_64/openjdk-slim/Dockerfile +++ b/3.0-spatial/x86_64/openjdk-slim/Dockerfile @@ -28,6 +28,7 @@ RUN mkdir /orientdb && \ && rm orientdb-community-$ORIENTDB_VERSION.tar.gz \ && rm -rf /orientdb/databases/* +RUN rm -rf /var/lib/apt/lists/* ENV PATH /orientdb/bin:$PATH diff --git a/3.0-tp3/x86_64/openjdk-slim/Dockerfile b/3.0-tp3/x86_64/openjdk-slim/Dockerfile index 67cce03..0db9596 100644 --- a/3.0-tp3/x86_64/openjdk-slim/Dockerfile +++ b/3.0-tp3/x86_64/openjdk-slim/Dockerfile @@ -28,6 +28,8 @@ RUN mkdir /orientdb && \ && rm orientdb-tp3-$ORIENTDB_VERSION.tar.gz \ && rm -rf /orientdb/databases/* +RUN rm -rf /var/lib/apt/lists/* + #overrides internal gremlin-server to set binding to 0.0.0.0 instead of localhost ADD gremlin-server.yaml /orientdb/config diff --git a/3.0/arm64v8/openjdk-slim/Dockerfile b/3.0/arm64v8/openjdk-slim/Dockerfile index ed42d17..332937c 100644 --- a/3.0/arm64v8/openjdk-slim/Dockerfile +++ b/3.0/arm64v8/openjdk-slim/Dockerfile @@ -28,6 +28,7 @@ RUN mkdir /orientdb && \ && rm orientdb-community-$ORIENTDB_VERSION.tar.gz \ && rm -rf /orientdb/databases/* +RUN rm -rf /var/lib/apt/lists/* ENV PATH /orientdb/bin:$PATH diff --git a/3.0/x86_64/openjdk-slim/Dockerfile b/3.0/x86_64/openjdk-slim/Dockerfile index ed42d17..332937c 100644 --- a/3.0/x86_64/openjdk-slim/Dockerfile +++ b/3.0/x86_64/openjdk-slim/Dockerfile @@ -28,6 +28,7 @@ RUN mkdir /orientdb && \ && rm orientdb-community-$ORIENTDB_VERSION.tar.gz \ && rm -rf /orientdb/databases/* +RUN rm -rf /var/lib/apt/lists/* ENV PATH /orientdb/bin:$PATH