1234567891011121314151617181920212223242526272829 |
- jib {
- from {
- image = "eclipse-temurin:11-jre-focal"
- platforms {
- platform {
- architecture = "${findProperty('jibArchitecture') ?: 'amd64'}"
- os = "linux"
- }
- }
- }
- to {
- image = "trade: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"]
- }
- }
|