Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to customize the runtime image #664

Open
ebaecff opened this issue Dec 27, 2024 · 0 comments
Open

How to customize the runtime image #664

ebaecff opened this issue Dec 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ebaecff
Copy link

ebaecff commented Dec 27, 2024

The program depends on cjk fonts when running.
These fonts are not included in the default Native Image.
How to configure the fonts to be installed in the package, or customize the running image after Native packaging?

gradle kotlin configuration :

import org.springframework.boot.gradle.tasks.bundling.BootBuildImage

plugins {
    kotlin("jvm") version "2.1.0"
    kotlin("plugin.spring") version "2.1.0"
    kotlin("plugin.jpa") version "2.1.0"
    id("org.hibernate.orm") version "6.6.4.Final"
    id("org.springframework.boot") version "3.4.1"
    id("io.spring.dependency-management") version "1.1.7"
    id("org.graalvm.buildtools.native") version "0.10.4"
}

// Omit some configuration

tasks.withType<BootBuildImage> {
    imageName = "${project.name.lowercase()}:${project.version}"
}

Please help me...

@ebaecff ebaecff added the enhancement New feature or request label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant