34 lines
803 B
Groovy
34 lines
803 B
Groovy
plugins {
|
|
id "com.google.cloud.tools.jib"
|
|
}
|
|
|
|
jib {
|
|
configurationName = "productionRuntimeClasspath"
|
|
from {
|
|
image = "eclipse-temurin:25-jre-noble"
|
|
platforms {
|
|
platform {
|
|
architecture = "${findProperty('jibArchitecture') ?: 'amd64'}"
|
|
os = "linux"
|
|
}
|
|
}
|
|
}
|
|
to {
|
|
image = "sisvietnamvn:latest"
|
|
}
|
|
container {
|
|
entrypoint = ["bash", "-c", "/entrypoint.sh"]
|
|
ports = ["8080"]
|
|
environment = [
|
|
SPRING_OUTPUT_ANSI_ENABLED: "ALWAYS",
|
|
JHIPSTER_SLEEP: "0"
|
|
]
|
|
creationTime = "USE_CURRENT_TIMESTAMP"
|
|
user = 1000
|
|
}
|
|
extraDirectories {
|
|
paths = file("src/main/docker/jib")
|
|
permissions = ["/entrypoint.sh": "755"]
|
|
}
|
|
}
|