update dockerfile: pull wait-for-it from github
Co-authored-by: Christoph <tobi@urpost.de>
This commit is contained in:
@ -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
5
pull-wait-for-it.sh
Normal 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
|
Reference in New Issue
Block a user