From 86aae94e0b677dae465b021ca1f47bab02a5ab86 Mon Sep 17 00:00:00 2001 From: Team Rocksolid Date: Tue, 27 Aug 2019 18:25:36 -0700 Subject: [PATCH] ROCKSOLID-4354 Remove Connect CLI from image to further optimize size. --- Dockerfile | 2 ++ Dockerfile-adoptopenjdk-openj9-alpine | 2 ++ Dockerfile-adoptopenjdk-openj9-alpine-jdk | 2 ++ Dockerfile-jdk | 2 ++ Dockerfile-zulu-alpine | 2 ++ Dockerfile-zulu-alpine-jdk | 2 ++ 6 files changed, 12 insertions(+) diff --git a/Dockerfile b/Dockerfile index b1ff9e8..0a09225 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,8 @@ RUN mkdir -p /opt/connect/appdata && chown -R mirth:mirth /opt/connect/appdata VOLUME /opt/connect/appdata VOLUME /opt/connect/custom-extensions WORKDIR /opt/connect +RUN rm -rf cli-lib manager-lib \ + && rm mirth-cli-launcher.jar mirth-manager-launcher.jar mccommand mcmanager RUN cat /opt/connect/docs/mcservice-java9+.vmoptions >> mcserver.vmoptions EXPOSE 8443 diff --git a/Dockerfile-adoptopenjdk-openj9-alpine b/Dockerfile-adoptopenjdk-openj9-alpine index aaa7578..bf7901a 100644 --- a/Dockerfile-adoptopenjdk-openj9-alpine +++ b/Dockerfile-adoptopenjdk-openj9-alpine @@ -15,6 +15,8 @@ RUN mkdir -p /opt/connect/appdata && chown -R mirth:mirth /opt/connect/appdata VOLUME /opt/connect/appdata VOLUME /opt/connect/custom-extensions WORKDIR /opt/connect +RUN rm -rf cli-lib manager-lib \ + && rm mirth-cli-launcher.jar mirth-manager-launcher.jar mccommand mcmanager RUN cat /opt/connect/docs/mcservice-java9+.vmoptions >> mcserver.vmoptions EXPOSE 8443 diff --git a/Dockerfile-adoptopenjdk-openj9-alpine-jdk b/Dockerfile-adoptopenjdk-openj9-alpine-jdk index 159addd..2de9bf7 100644 --- a/Dockerfile-adoptopenjdk-openj9-alpine-jdk +++ b/Dockerfile-adoptopenjdk-openj9-alpine-jdk @@ -15,6 +15,8 @@ RUN mkdir -p /opt/connect/appdata && chown -R mirth:mirth /opt/connect/appdata VOLUME /opt/connect/appdata VOLUME /opt/connect/custom-extensions WORKDIR /opt/connect +RUN rm -rf cli-lib manager-lib \ + && rm mirth-cli-launcher.jar mirth-manager-launcher.jar mccommand mcmanager RUN cat /opt/connect/docs/mcservice-java9+.vmoptions >> mcserver.vmoptions EXPOSE 8443 diff --git a/Dockerfile-jdk b/Dockerfile-jdk index 013b016..409e423 100644 --- a/Dockerfile-jdk +++ b/Dockerfile-jdk @@ -16,6 +16,8 @@ RUN mkdir -p /opt/connect/appdata && chown -R mirth:mirth /opt/connect/appdata VOLUME /opt/connect/appdata VOLUME /opt/connect/custom-extensions WORKDIR /opt/connect +RUN rm -rf cli-lib manager-lib \ + && rm mirth-cli-launcher.jar mirth-manager-launcher.jar mccommand mcmanager RUN cat /opt/connect/docs/mcservice-java9+.vmoptions >> mcserver.vmoptions EXPOSE 8443 diff --git a/Dockerfile-zulu-alpine b/Dockerfile-zulu-alpine index 7a566f2..29d7698 100644 --- a/Dockerfile-zulu-alpine +++ b/Dockerfile-zulu-alpine @@ -15,6 +15,8 @@ RUN mkdir -p /opt/connect/appdata && chown -R mirth:mirth /opt/connect/appdata VOLUME /opt/connect/appdata VOLUME /opt/connect/custom-extensions WORKDIR /opt/connect +RUN rm -rf cli-lib manager-lib \ + && rm mirth-cli-launcher.jar mirth-manager-launcher.jar mccommand mcmanager RUN cat /opt/connect/docs/mcservice-java9+.vmoptions >> mcserver.vmoptions EXPOSE 8443 diff --git a/Dockerfile-zulu-alpine-jdk b/Dockerfile-zulu-alpine-jdk index 61a5676..3a8cd82 100644 --- a/Dockerfile-zulu-alpine-jdk +++ b/Dockerfile-zulu-alpine-jdk @@ -15,6 +15,8 @@ RUN mkdir -p /opt/connect/appdata && chown -R mirth:mirth /opt/connect/appdata VOLUME /opt/connect/appdata VOLUME /opt/connect/custom-extensions WORKDIR /opt/connect +RUN rm -rf cli-lib manager-lib \ + && rm mirth-cli-launcher.jar mirth-manager-launcher.jar mccommand mcmanager RUN cat /opt/connect/docs/mcservice-java9+.vmoptions >> mcserver.vmoptions EXPOSE 8443