From 5a34676477ce3ac5f51891b2373bfd0f48842546 Mon Sep 17 00:00:00 2001 From: Kenny Wang Date: Thu, 5 Sep 2019 08:51:32 +0800 Subject: [PATCH 1/3] add curl for healthcheck --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7e1478c..715e812 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,8 @@ FROM openjdk:8-jre-alpine LABEL maintainer="Martin DSouza " +RUN apk add --update curl + ENV TZ="GMT" \ APEX_CONFIG_DIR="/opt" \ TOMCAT_HOME="/usr/local/tomcat" \ From 9f9087aa6d3875a0b1af4cc59e5af6404daf48bd Mon Sep 17 00:00:00 2001 From: Kenny Wang Date: Thu, 5 Sep 2019 09:05:53 +0800 Subject: [PATCH 2/3] add --no-cache parameter when curl is installing --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 715e812..c8ebc8f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM openjdk:8-jre-alpine LABEL maintainer="Martin DSouza " -RUN apk add --update curl +RUN apk --no-cache add --update curl ENV TZ="GMT" \ APEX_CONFIG_DIR="/opt" \ From a41c53295e5c39446f1296f59257c82a44b449e2 Mon Sep 17 00:00:00 2001 From: Kenny Wang Date: Thu, 5 Sep 2019 14:52:03 +0800 Subject: [PATCH 3/3] merge RUN command for curl installation --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c8ebc8f..e16e4a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,6 @@ FROM openjdk:8-jre-alpine LABEL maintainer="Martin DSouza " -RUN apk --no-cache add --update curl - ENV TZ="GMT" \ APEX_CONFIG_DIR="/opt" \ TOMCAT_HOME="/usr/local/tomcat" \ @@ -18,7 +16,8 @@ WORKDIR ${ORDS_DIR} COPY ["files/ords-*.zip", "scripts/*", "/tmp/"] -RUN echo "" && \ +RUN apk add --update curl && \ + echo "" && \ unzip /tmp/ords-*.zip ords.war && \ rm -rf /tmp/ords-*.zip && \ chmod +x /tmp/docker-run.sh && \