netty.dockerfile 550 B

123456789101112131415
  1. FROM maven:3.9.9-eclipse-temurin-24-noble as maven
  2. WORKDIR /netty
  3. COPY pom.xml pom.xml
  4. COPY src src
  5. RUN mvn compile assembly:single -q
  6. FROM maven:3.9.9-eclipse-temurin-24-noble
  7. WORKDIR /netty
  8. COPY --from=maven /netty/target/app.jar app.jar
  9. COPY run_netty.sh run_netty.sh
  10. EXPOSE 8080
  11. # see https://github.com/netty/netty/issues/14942
  12. # remember to run this with --privileged since https://github.com/TechEmpower/FrameworkBenchmarks/blob/c94f7f95bd751f86a57dea8b63fb8f336bdbbde3/toolset/utils/docker_helper.py#L239 does it
  13. ENTRYPOINT "./run_netty.sh"