vertx-web-kotlin-coroutines.dockerfile 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. FROM gradle:7.3.3-jdk11 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. -XX:+AggressiveOpts \
  14. -Dvertx.disableMetrics=true \
  15. -Dvertx.disableH2c=true \
  16. -Dvertx.disableWebsockets=true \
  17. -Dvertx.flashPolicyHandler=false \
  18. -Dvertx.threadChecks=false \
  19. -Dvertx.disableContextTimings=true \
  20. -Dvertx.disableTCCL=true \
  21. -Dvertx.disableHttpHeadersValidation=true \
  22. -Dvertx.eventLoopPoolSize=$((`grep --count ^processor /proc/cpuinfo`)) \
  23. -Dio.netty.buffer.checkBounds=false \
  24. -Dio.netty.buffer.checkAccessible=false \
  25. -jar \
  26. build/libs/vertx-web-kotlin-coroutines-benchmark-4.1.5-fat.jar \
  27. --instances \
  28. `grep --count ^processor /proc/cpuinfo` \
  29. --conf \
  30. src/main/conf/config.json \
  31. --options \
  32. src/main/conf/vertx.json