From af14537717d42819343b3b3ba7465a7f4c8b5aff Mon Sep 17 00:00:00 2001 From: Wang Jue Date: Sun, 1 Sep 2019 13:28:36 +0800 Subject: [PATCH] Remove openjdk src package to decrease package size Signed-off-by: Wang Jue --- cassandra/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cassandra/Dockerfile b/cassandra/Dockerfile index 6edf0b3..805ac7a 100644 --- a/cassandra/Dockerfile +++ b/cassandra/Dockerfile @@ -12,11 +12,13 @@ COPY --from=clearlinux/os-core:latest /usr/lib/os-release / # Install additional content in a target directory # using the os version from the minimal base +# Remove openjdk src package to optimize docker image size RUN source /os-release && \ mkdir /install_root \ && swupd os-install -V ${VERSION_ID} \ --path /install_root --statedir /swupd-state \ - --bundles=cassandra,os-core-plus,su-exec --no-boot-update + --bundles=cassandra,os-core-plus,su-exec --no-boot-update \ + && rm /install_root/usr/lib/jvm/*/src.zip # For some Host OS configuration with redirect_dir on, # extra data are saved on the upper layer when the same