vertx-web-kotlin-coroutines-postgres.dockerfile 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. FROM gradle:8.10.2-jdk17 as gradle
  2. WORKDIR /vertx-web-kotlin-coroutines
  3. COPY src src
  4. COPY build.gradle.kts build.gradle.kts
  5. COPY gradle.properties gradle.properties
  6. COPY settings.gradle.kts settings.gradle.kts
  7. RUN gradle shadowJar
  8. EXPOSE 8080
  9. CMD java \
  10. -server \
  11. -XX:+UseNUMA \
  12. -XX:+UseParallelGC \
  13. -Dvertx.disableMetrics=true \
  14. -Dvertx.disableH2c=true \
  15. -Dvertx.disableWebsockets=true \
  16. -Dvertx.flashPolicyHandler=false \
  17. -Dvertx.threadChecks=false \
  18. -Dvertx.disableContextTimings=true \
  19. -Dvertx.disableTCCL=true \
  20. -Dvertx.disableHttpHeadersValidation=true \
  21. -Dvertx.eventLoopPoolSize=$((`grep --count ^processor /proc/cpuinfo`)) \
  22. -Dio.netty.buffer.checkBounds=false \
  23. -Dio.netty.buffer.checkAccessible=false \
  24. -jar \
  25. build/libs/vertx-web-kotlin-coroutines-benchmark-4.3.8-fat.jar \
  26. --instances \
  27. `grep --count ^processor /proc/cpuinfo` \
  28. --conf \
  29. src/main/conf/config.json \
  30. --options \
  31. src/main/conf/vertx.json