1

update dockerfile: pull wait-for-it from github

Co-authored-by: Christoph <tobi@urpost.de>
This commit is contained in:
Christoph
2020-03-26 16:28:28 +01:00
parent 33e3d9d3f5
commit 083044bbbb
2 changed files with 9 additions and 0 deletions

View File

@ -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

5
pull-wait-for-it.sh Normal file
View File

@ -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