FROM maven:3.6.1-jdk-11-slim as maven
WORKDIR /t-io
COPY pom.xml pom.xml
COPY src src
COPY script script
RUN mvn package -q

#TODO use separate JDK/JRE for the RUN (as the other builds)
WORKDIR /t-io/target/tio-http-server-benchmark
CMD ["java", "-server", "-Xms1G", "-Xmx1G", "-XX:+UseNUMA", "-XX:+UseParallelGC", "-Dpacket.handler.mode=queue1", "-cp", "/t-io/target/tio-http-server-benchmark/config:/t-io/target/tio-http-server-benchmark/lib/*", "org.tio.http.server.benchmark.TioBenchmarkStarter"]
