https://kotlinlang.org logo
#ktor
Title
# ktor
c

czuckie

03/03/2024, 3:20 PM
hey guys, does the ktor docker gradle plugin functionality allow me to select a target architecture? Right now I seem to only be getting amd64 but I want arm64
Turns out as it uses
jib
underneath, you can configure which platforms you want like:
Copy code
jib {
    from {
        platforms {
            platform {
                os = "linux"
                architecture = "arm64"
            }
        }
        image = "eclipse-temurin:17-jre-alpine"
    }
}
The resultant image now runs on my raspberry pi5 👍
👍 1
7 Views