inverno-postgres.dockerfile 507 B

123456789101112
  1. FROM maven:3.9.6-amazoncorretto-21 as maven
  2. WORKDIR /inverno
  3. COPY src src
  4. COPY pom.xml pom.xml
  5. RUN yum -y install binutils
  6. RUN mvn package -q -Pio.inverno.io_uring
  7. EXPOSE 8080
  8. # CMD [ "target/inverno-benchmark-1.0.0-SNAPSHOT-application_linux_amd64/bin/inverno-benchmark" ]
  9. CMD export DBIP=`getent hosts tfb-database | awk '{ print $1 }'` && \
  10. target/inverno-benchmark-1.0.0-SNAPSHOT-application_linux_amd64/bin/inverno-benchmark --com.techempower.inverno.benchmark.appConfiguration.db_host=\"$DBIP\"