inverno-postgres.dockerfile 524 B

123456789101112
  1. FROM maven:3.9.9-eclipse-temurin-21 as maven
  2. WORKDIR /inverno
  3. COPY src src
  4. COPY pom.xml pom.xml
  5. RUN mvn package -q -Pio.inverno.epoll
  6. EXPOSE 8080
  7. CMD export DBIP=`getent hosts tfb-database | awk '{ print $1 }'` && \
  8. target/inverno-benchmark-1.0.0-SNAPSHOT-application_linux_amd64/bin/inverno-benchmark \
  9. --com.techempower.inverno.benchmark.appConfiguration.db_host=\"$DBIP\" \
  10. --com.techempower.inverno.benchmark.appConfiguration.boot.reactor_event_loop_group_size=$((`grep --count ^processor /proc/cpuinfo`))