Build Spring Boot image for arm64 architecture
luciano-fiandesio opened this issue · comments
In case someone is running this project on a M1/M2 Apple chip, this will enable building the image for the correct architecture:
Replace the jib configuration from the build.gradle file from event-sourcing-app
with:
jib {
to {
image = "eugene-khyst/postgresql-event-sourcing:${project.version}"
}
from {
image = "eclipse-temurin:21-jre"
platforms {
platform {
architecture = 'arm64'
os = 'linux'
}
}
}
}