ratpack-pgclient.dockerfile 737 B

1234567891011121314151617181920212223242526
  1. FROM gradle:5.4.1-jdk11 as gradle
  2. USER root
  3. WORKDIR /ratpack
  4. COPY build.gradle build.gradle
  5. COPY src src
  6. RUN gradle shadowJar
  7. FROM openjdk:11.0.3-jdk-slim
  8. WORKDIR /ratpack
  9. COPY --from=gradle /ratpack/build/libs/ratpack-all.jar app.jar
  10. EXPOSE 5050
  11. CMD export DBIP=`getent hosts tfb-database | awk '{ print $1 }'` && \
  12. java \
  13. -server \
  14. -XX:+UseNUMA \
  15. -XX:+UseParallelGC \
  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. -jar app.jar profile.name=pgclient database.host=$DBIP