es4x.dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. FROM ghcr.io/graalvm/graalvm-ce:20.3.1.2
  2. # Set working dir
  3. RUN mkdir /app
  4. WORKDIR /app
  5. COPY ./package.json /app
  6. # Get dependencies
  7. RUN npm --unsafe-perm install
  8. # Copy the app
  9. COPY ./ /app
  10. # Compile the template
  11. RUN npm run template
  12. EXPOSE 8080
  13. # Run the code
  14. CMD java \
  15. -server \
  16. -XX:+UseNUMA \
  17. -XX:+UseParallelGC \
  18. -XX:+AggressiveOpts \
  19. -Dvertx.disableMetrics=true \
  20. -Dvertx.disableH2c=true \
  21. -Dvertx.disableWebsockets=true \
  22. -Dvertx.flashPolicyHandler=false \
  23. -Dvertx.threadChecks=false \
  24. -Dvertx.disableContextTimings=true \
  25. -Dvertx.disableTCCL=true \
  26. -Dvertx.disableHttpHeadersValidation=true \
  27. -jar node_modules/.bin/es4x-launcher.jar \
  28. --instances `grep --count ^processor /proc/cpuinfo` \
  29. --options vertx.json