From 083044bbbb2e6ff708ddd2dda5307b646bc19db8 Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 26 Mar 2020 16:28:28 +0100 Subject: [PATCH] update dockerfile: pull wait-for-it from github Co-authored-by: Christoph --- Dockerfile | 4 ++++ pull-wait-for-it.sh | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 pull-wait-for-it.sh diff --git a/Dockerfile b/Dockerfile index cf75fef..a18d8b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,11 @@ FROM gradle:jdk11 AS build COPY --chown=gradle:gradle . /home/gradle/src WORKDIR /home/gradle/src + RUN chmod +x ./pull-wait-for-it.sh +RUN ./pull-wait-for-it.sh +RUN chmod +x ./wait-for-it.sh + RUN gradle bootJar --no-daemon FROM openjdk:11-jre-slim diff --git a/pull-wait-for-it.sh b/pull-wait-for-it.sh new file mode 100644 index 0000000..773c9fe --- /dev/null +++ b/pull-wait-for-it.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ ! -f wait-for-it.sh ]; then + wget https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh +fi