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

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