Skip to content

Commit

Permalink
Updates base image to support cross-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronzi committed Oct 4, 2024
1 parent c6ed894 commit 2f2aba1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions databridge.component/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
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

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
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<docker.namespace>eclipsebasyx</docker.namespace>
<docker.image.name>NOT_DEFINED_IN_MODULE</docker.image.name>
<docker.image.tag>${revision}</docker.image.tag>
<docker.target.platforms>linux/amd64, linux/arm64/v8</docker.target.platforms>
<docker.target.platforms>linux/amd64, linux/arm64, linux/arm/v7</docker.target.platforms>
<camel.version>3.21.0</camel.version>
</properties>

Expand Down

0 comments on commit 2f2aba1

Please sign in to comment.