ratpack-pgclient.dockerfile 716 B

1234567891011121314151617181920212223
  1. FROM gradle:4.7.0-jdk8 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:8-jre-slim
  8. WORKDIR /ratpack
  9. COPY --from=gradle /ratpack/build/libs/ratpack-all.jar app.jar
  10. CMD export DBIP=`getent hosts tfb-database | awk '{ print $1 }'` && \
  11. 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. -jar app.jar profile.name=pgclient database.host=$DBIP