docker.gradle 695 B

1234567891011121314151617181920212223242526272829
  1. jib {
  2. from {
  3. image = "eclipse-temurin:11-jre-focal"
  4. platforms {
  5. platform {
  6. architecture = "${findProperty('jibArchitecture') ?: 'amd64'}"
  7. os = "linux"
  8. }
  9. }
  10. }
  11. to {
  12. image = "trade:latest"
  13. }
  14. container {
  15. entrypoint = ["bash", "-c", "/entrypoint.sh"]
  16. ports = ["8080"]
  17. environment = [
  18. SPRING_OUTPUT_ANSI_ENABLED: "ALWAYS",
  19. JHIPSTER_SLEEP: "0"
  20. ]
  21. creationTime = "USE_CURRENT_TIMESTAMP"
  22. user = 1000
  23. }
  24. extraDirectories {
  25. paths = file("src/main/docker/jib")
  26. permissions = ["/entrypoint.sh": "755"]
  27. }
  28. }