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

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