Jooq unable to find database when triggered via a gradle image on Dockerfile
问题 I have a Dockerfile that uses gradle to build my Spring boot application just before coping it into the container and trigger it. This is how it looks: FROM gradle:5.4.1-jdk8-alpine AS build COPY --chown=gradle:gradle . /home/gradle/src WORKDIR /home/gradle/src RUN gradle build --no-daemon FROM openjdk:8-jdk-alpine EXPOSE 8080 RUN mkdir /app COPY --from=build /home/gradle/src/build/libs/*.jar yurlapp.jar ENTRYPOINT ["java","-jar" , "/yurlapp.jar"] It's quite simple, it will execute Gradle and