Use of Azul Zulu JDK 11 LTS (FINERACT-1416)

This commit is contained in:
Victor Romero
2021-10-26 11:13:03 +08:00
committed by Petri Tuomola
parent 38c2cfe7a0
commit 0de257fd44
3 changed files with 46 additions and 10 deletions
+10 -4
View File
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
#
FROM openjdk:11 AS builder
FROM azul/zulu-openjdk-debian:11 AS builder
RUN apt-get update -qq && apt-get install -y wget
@@ -34,11 +34,17 @@ RUN wget -q https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.23/mys
# =========================================
FROM gcr.io/distroless/java:11 as fineract
FROM azul/zulu-openjdk-alpine:11 AS fineract
COPY --from=builder /fineract/fineract-provider/build/libs /app
COPY --from=builder /fineract/libs /app/libs
WORKDIR /app
WORKDIR /
ENTRYPOINT ["java", "-Dloader.path=/app/libs/", "-jar", "/app/fineract-provider.jar"]
COPY entrypoint.sh /entrypoint.sh
RUN chmod 775 /entrypoint.sh
EXPOSE 8443
ENTRYPOINT ["/entrypoint.sh"]