From 2f2aba1932e5f32e20d96c9616276ded519cb6e7 Mon Sep 17 00:00:00 2001 From: Aaron Zielstorff Date: Fri, 4 Oct 2024 13:31:56 +0200 Subject: [PATCH] Updates base image to support cross-compilation --- databridge.component/Dockerfile | 7 +++++-- pom.xml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/databridge.component/Dockerfile b/databridge.component/Dockerfile index 71cdd3c1..d72fa5b1 100644 --- a/databridge.component/Dockerfile +++ b/databridge.component/Dockerfile @@ -1,4 +1,7 @@ -FROM openjdk:11-slim-bullseye +FROM eclipse-temurin:11 + +# Install wget to check health status +RUN apt update && apt install -y wget && apt clean # Copy built jar to image using the jar name specified in the pom.xml (JAR_FILE) ARG JAR_FILE=target/*.jar @@ -6,7 +9,7 @@ ARG JAR_FILE=target/*.jar COPY ${JAR_FILE} /usr/share/databridgeExecutable.jar COPY target/lib /usr/share/lib -# Expose this port for health check +# Expose this port for health check EXPOSE 8085 # Start the jar diff --git a/pom.xml b/pom.xml index 8e250375..addd3162 100644 --- a/pom.xml +++ b/pom.xml @@ -52,7 +52,7 @@ eclipsebasyx NOT_DEFINED_IN_MODULE ${revision} - linux/amd64, linux/arm64/v8 + linux/amd64, linux/arm64, linux/arm/v7 3.21.0